29 lines
1.2 KiB
ReStructuredText
29 lines
1.2 KiB
ReStructuredText
.. _ai-code-review:
|
||
|
||
AI Code review
|
||
=================
|
||
|
||
To start AI code review, first complete the setup in :ref:`ai-config`.
|
||
|
||
You can configure AI code review in several places:
|
||
|
||
1. Global (admin)
|
||
Navigate to :menuselection:`Admin --> Authentication --> Settings --> AI Features` and enable `Turn on AI code review by default for new PRs`.
|
||
This sets the default for all newly created pull requests. Repository admins and PR authors can override this setting at the repository and pull request level.
|
||
|
||
2. Repository-level setting (repository admin)
|
||
Navigate to :menuselection:`Repository Settings --> VCS --> Pull Request Settings` and toggle `Enable AI review for pull requests`.
|
||
|
||
3. During pull request creation (any user)
|
||
When creating a pull request, enable the `Run AI code review` checkbox to run the review for that PR.
|
||
|
||
4. In an existing pull request (any user)
|
||
In an existing pull request, use the button in the right-side menu to start an AI code review.
|
||
|
||
|
||
.. note::
|
||
|
||
At the moment, AI code review can only be run once per pull request.
|
||
After the review finishes, you won’t be able to restart it. In addition,
|
||
you can view the AI code review status in the audit logs.
|
||
|