Feat: added support for @amazon-q mention in comments
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Original issue: https://gitlab.com/gitlab-com/ops-sub-department/aws-gitlab-ai-integration/integration-motion-planning/-/issues/651#note_2794729108
One of our goals with GQ (GitLab Duo powered by Amazon Q ProServe engagement) is to reach feature parity between GitLab Duo Enterprise and GitLab Duo powered by Amazon Q.
As it stands, there is a feature gap between the way users can request code reviews from GitLab Duo. Users can mention the GitLab Duo bot identity directly to ask for a review, whereas with Amazon Q, they must use quick actions. With GitLab Duo Enterprise, this interaction style also allows for threaded conversations (allowing the user to follow-up on the AI’s comments), while the quick actions does not.
There are two aspects:
- support for assigning the amazon-q service account as a reviewer, triggering a review
- responding to the bot within reviews (threaded mentions)
This MR adds support part /2, threaded mentions on comments. Support for 1/ will be part of a different MR.
References
Original issue: https://gitlab.com/gitlab-com/ops-sub-department/aws-gitlab-ai-integration/integration-motion-planning/-/issues/651
issue in the GitLab org: #573779
Screenshots or screen recordings
| Before | After |
|---|---|
No Threaded Responses |
Threaded responses |
How to set up and validate locally
- Checkout the branch
- Ensure the instance has the Duo powered by Amazon Q license
- Onboard to Duo powered by Amazon Q
- Create a merge request
- Trigger an Amazon Q review by running
/q review - Wait for MR review from Amazon Q
- On one of the threads, ask Amazon Q for more information or make a comment by mentioning it
@amazon-q please tell me more - Confirm that Amazon Q responds back
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #573779


