Add code review summary support for Amazon Q

What does this MR do and why?

References

This merge request adds Amazon Q support for the "summarize-a-code-review" feature

Screenshots or screen recordings

Screenshot_2025-08-07_at_10.44.12

How to set up and validate locally

Prerequisites

  • Create a new project in a Group Namespace
  • Ensure you have a License with Duo features enabled
  • Ensure Amazon Q has onboarded successfully
  • Ensure License.feature_available?(:summarize_review) = true
  • Enable Experimental features with ApplicationSetting.current.update!(instance_level_ai_beta_features_enabled: true)
  • Check out this branch, then:
    • Ensure user.allowed_to_use(:summarize_my_code_review).allowed? = true
    • Ensure user.allowed_to_use(:summarize_review).allowed? = true
    • Ensure user.can?(:access_summarize_review, merge_request) = true

Steps

  • Open an MR
  • Start a Review on that MR
  • Leave 3 comments in that review
  • In the "Finish Review" box, hover over "Add Summary

The summary should automatically populate.

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 #618 (closed)

Merge request reports

Loading