ref project 参考项目

本地化部署项目

git clone git@github.com:CodeDuoGun/AI-Codereview-Gitlab.git
cd AI-Codereview-Gitlab

自定义本地配置文件

cp conf/.env.dist conf/.env
# 根据自己的需要,修改配置保存即可,比如选用的大模型,我使用的是qwen

启动服务,我选择的docker,很丝滑

docker compose up -d

创建github webhook

1、需要一个内网穿透,我用的ngrok,据说那个花生壳好像也行,感兴趣可以试试

brew install ngrok  # macOS
按照下面步骤走完即可
# 注册或者登录: https://dashboard.ngrok.com/signup
# 获取token: https://dashboard.ngrok.com/get-started/your-authtoken
# 配置token: ngrok config add-authtoken 你的-token
ngrok http 8000 # 公网映射
# 出现如下信息表示成功
Forwarding                    https://abc123.ngrok.io -> http://localhost:8000

在github上配置webhook

https://abc123.ngrok.io/your_webhook_address
在这里插入图片描述

效果

在这里插入图片描述

太简单了,难不住我

我这么优秀,快请我喝杯咖啡,嘻嘻

在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐