Implement basic version of automated code review
What does this MR do and why?
This introduces a ai_review
quick action which will execute a LLM completion called ReviewMergeRequest
.
This will make a request to AI for each diff hunk and create a note for each diff hunk reviewed.
Diff files that are not diffable and deleted will be excluded from the review.
This is behind the ai_review_merge_request
feature flag so no changelog.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Follow steps in this doc.
- Enable
ai_review_merge_request
. - Create a MR on AI enabled project.
- Comment
/ai_review
to execute quick action. - Wait for the comments to show up.
Related to #454938 (closed)
Edited by Patrick Bajao