feat: enable assign reviewer for amazon q
What does this MR do and why?
This MR allows GitLab user with Duo Enterprise with Q or Duo with Amazon Q add-ons and Q enabled to assign review to the GitLabDuo bot, would then be processed by Amazon Q
References
-
Depends on: gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!2985 (merged)
-
⚠️ Needs cloud connector token returned for Amazon Q add-on license to be updated such that it returns new field:cloud_connector_access token available_services name: review_merge_request bundleWith: + duo_amazon_q
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Self-hosted GitLab instance
- Setup a licence with GitLab Duo Enterprise or GitLab Duo with Amazon Q add-on
- Connect to AIGW with MR 2985 integrated as that has dependent Amazon Q prompt
- Connect and onboard Amazon Q
- Create a project with some code (create project from template, java)
- Modify some code and create a MR (introduce some vulnerabilities, etc. in the code)
- Assign GitLabDuo bot as a reviewer via
/assign_reviewer @GitLabBot - After some time, GitLabBot will finish reviewing code and will post findings.
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.
Edited by Dmytro Protsiv

