General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
AI Code Reviewer allows you to quickly spot common mistakes in your code.
Sign in to like and favorite skills
AI Code Reviewer allows you to quickly spot common mistakes in your code. The diff from the Merge Request is sent to ChatGPT and asked for review.
You can use in locally, or set up as a part of Gitlab CI (preferable).
When using locally, make sure you install the python libraries from the requirements.txt file. On top of that you will need to have 4 environment variables:
Note that the last two variables are available during Gitlab CI and you only need to provide them for local executions.
After having env variables loaded, you can run
python main.py.
Add the following two keys to your CI/CD variables:
Run
python main.py as part of the CI stage, inside image registry.gitlab.com/gitlab-ci-templates3/gitlab-ci-chatgpt:latest.
For more detailed example see .gitlab-ci.yml in this repository.