Sign inSign up

rsakao/gitlab-openai

By rsakao

Updated over 2 years ago

https://github.com/rsakao/gitlab-openai

Image
0

1.5K

rsakao/gitlab-openai repository overview

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 variablesdefaultexample
GITLAB_URLhttps://gitlab.mycompany.comhttp://mygitlab
GITLAB_TOKEN-abcdefghij1234567890
GITLAB_SSL_VERIFYTrueFalse
PROJECT_ID-12345
MERGE_REQUEST_ID-67890
AZURE_KEY-xxxxxxx
AZURE_ENDPOINThttps://api.azure.comhttps://xxx.openai.azure.com
AZURE_API_VERSION2023-09-01-preview2023-05-15
MODELgpt-4gpt-4-32k
MAX_TOKEN500032000

Tag summary

Content type

Image

Digest

sha256:27d39f86b

Size

381.7 MB

Last updated

over 2 years ago

docker pull rsakao/gitlab-openai