GitLab auto code review tool using LLMs
Top 55.5% on sourcepulse
This project provides an automated code review tool leveraging large language models (LLMs) for GitLab and GitHub. It aims to enhance code quality and development efficiency by integrating with CI/CD pipelines, offering instant notifications, and generating development reports. The target audience includes development teams seeking to streamline their code review process.
How It Works
The system is triggered by GitLab webhooks upon code submission (e.g., Merge Requests or Push events). It then utilizes a chosen LLM (DeepSeek, OpenAI, ZhipuAI, Tongyi Qianwen, or Ollama) to analyze the code changes. Review results are posted directly as comments on the relevant Merge Request or Commit, with optional notifications sent to DingTalk, WeChat Work, or Lark.
Quick Start & Requirements
git clone https://github.com/sunmh207/AI-Codereview-Gitlab.git
.env.dist
to .env
with API keys and configurations.docker-compose up -d
http://your-server-ip:5001
(API), http://your-server-ip:5002
(Dashboard)cd
into it.pip install -r requirements.txt
(Python 3.10+ recommended)..env
).python api.py
streamlit run ui.py --server.port=5002 --server.address=0.0.0.0
http://your-server-ip:5001/review/webhook
, triggering on Push and Merge Request events. A GitLab Access Token is required for authentication.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 week ago
Inactive