Feat: added support for @amazon-q mention in comments

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:

  1. support for assigning the amazon-q service account as a reviewer, triggering a review
  2. 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

Screenshot 2025-10-10 at 3.23.14 PM.png

Threaded responses

Screenshot 2025-10-10 at 3.14.03 PM.png

Screenshot 2025-10-10 at 3.15.09 PM.png

How to set up and validate locally

  1. Checkout the branch
  2. Ensure the instance has the Duo powered by Amazon Q license
  3. Onboard to Duo powered by Amazon Q
  4. Create a merge request
  5. Trigger an Amazon Q review by running /q review
  6. Wait for MR review from Amazon Q
  7. On one of the threads, ask Amazon Q for more information or make a comment by mentioning it @amazon-q please tell me more
  8. 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

Edited by Benson Wu

Merge request reports

Loading