unrhodecode/docs/ai/ai-code-review.rst
2026-01-21 14:02:41 +01:00

29 lines
1.2 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. _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 wont be able to restart it. In addition,
you can view the AI code review status in the audit logs.