mirror of
https://github.com/mimo-x/Code-Review-GPT-Gitlab.git
synced 2026-02-18 03:48:29 +01:00
🤖 GPT( Deepseek and more ) Code Review for Gitlab (针对于 Gitlab 的 LLM 辅助 Code Review 工具)项目详细文档 👇🏻
https://mimo-x.github.io/Code-Review-GPT-Gitlab/
chore:增强文档并新增中文支持 • 更新了 zensical.toml,新增英文和中文文档的网站配置。 • 新增 zensical.zh.toml 文件,用于支持中文文档配置。 • 修改了 GitHub Actions 工作流,使其可以同时构建并部署英文和中文文档。 • 新增中文版本的首页和 FAQ 文档,并添加了多张图片以增强可视化效果。 • 删除了过期的文档文件,以精简项目结构。 |
||
|---|---|---|
| .devcontainer | ||
| .github/workflows | ||
| backend | ||
| docker/backend | ||
| docs | ||
| docs_zh | ||
| frontend | ||
| scripts | ||
| .dockerignore | ||
| .env | ||
| .env.example | ||
| .env.prod.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| docker-compose.yml | ||
| LICENSE | ||
| README.md | ||
| README_EN.md | ||
| zensical.toml | ||
| zensical.zh.toml | ||
Description 📚
A project using LLM to empower Code Review 💪🏻 ((LLM not only includes GPT 🎁))
What are the characteristics of the project? ✨
🐶 We customize it for gitlab
🐱 We combine the powers of GPT 🚀
🦊 We're going to access privatization LLM to solve code security issues
🦁 We will always be aware of the latest developments of code review into the project
Project structure 🚗
Results preview 🌈
1. Gitlab Code Review for Merge Request
2. Dingding-code-review message
3. Integration of More Large Models
- Custom models can be quickly integrated by implementing the project interface. For specific configuration methods, refer to config.md.
- The project supports multiple models through UnionLLM, which is compatible with LiteLLM. The default supported models are listed in the table below.
| OpenAI | Azure | AWS - SageMaker | AWS - Bedrock |
| Google - Vertex_AI | Google - Palm | Google AI Studio - Gemini | Mistral AI API |
| Cloudflare AI Workers | Cohere | Anthropic | Empower |
| Huggingface | Replicate | Together_AI | OpenRouter |
| AI21 | Baseten | Vllm | NLP_Cloud |
| Aleph Alpha | Petals | Ollama | Deepinfra |
| Perplexity-AI | Groq AI | DeepSeek | Anyscale |
| IBM - Watsonx.ai | Voyage AI | Xinference [Xorbits Inference] | FriendliAI |
| Galadriel | 智谱AI | 月之暗面 Moonshot | 百度文心一言 |
| 阿里巴巴通义千问 | MiniMax | 讯飞星火 | 百川智能 |
| 昆仑天工 | 零一万物 | 阶跃星辰 | 字节豆包 |
| DeepSeek | More |
install
Run by Source code
1.clone repo
git clone git@github.com:mimo-x/Code-Review-GPT-Gitlab.git
2.install requirements
pip install -r requirements.txt
3.modify config file
vim config/config.py
4.run
python3 app.py
5.config gitlab webhook
When filling in the
Webhook URL, please add/git/webhookafter the domain name. For example:http://example.com/git/webhook
Docker
todo dockerfile
Todo List 📌
- ✅ Use GPT to Code Review
- Try to access the privatization LLM to Address code security issues
- Enable more trigger methods
- ✅ Merge Request
- for every commit
- for tag
- FeiShu(飞书) Code Review message notification
- Static code analysis to Analyze the risk level of modifying code
Communication 👨👨👦👦
👏🏻You're welcome to ask us questions(issue,pr), Thank you for your star ⭐️
📮 Email:mixuxin@163.com
👨👨👦👦 This is our WeChat group

reference 📚
License 📑
This project is licensed under the MIT License.