https://github.com/rsakao/gitlab-openai
1.5K
A container that reads GitLab merge requests and does code reviews; sends diffs to Azure OpenAI Service and lets the AI in the Large Language Model do code reviews. The results are written to GitLab's merge request screen with comments.
docker run:
docker run --rm
-e GITLAB_URL=<gitlab url>
-e GITLAB_TOKEN=<gitlab access token>
-e PROJECT_ID=<gitlab project id>
-e MERGE_REQUEST_ID=<gitlab merge request id>
-e AZURE_KEY=<azure openai api key>
-e AZURE_ENDPOINT=<azure openai url>
aireviewer
| environment variables | default | example |
|---|---|---|
GITLAB_URL | https://gitlab.mycompany.com | http://mygitlab |
GITLAB_TOKEN | - | abcdefghij1234567890 |
GITLAB_SSL_VERIFY | True | False |
PROJECT_ID | - | 12345 |
MERGE_REQUEST_ID | - | 67890 |
AZURE_KEY | - | xxxxxxx |
AZURE_ENDPOINT | https://api.azure.com | https://xxx.openai.azure.com |
AZURE_API_VERSION | 2023-09-01-preview | 2023-05-15 |
MODEL | gpt-4 | gpt-4-32k |
MAX_TOKEN | 5000 | 32000 |
Content type
Image
Digest
sha256:27d39f86b…
Size
381.7 MB
Last updated
over 2 years ago
docker pull rsakao/gitlab-openai