Skip to content

Support HTML in merge request review AI summary

What does this MR do and why?

Adds frontend support for Parse markdown review summary content (!130221 - merged) backend changes to fix Parse markdown review summary content (#418882 - closed).

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Enable automatically_summarize_mr_review feature flag.

  2. Enable summarize_diff_automatically feature flag.

  3. Follow https://docs.gitlab.com/ee/development/ai_features.html#test-ai-features-locally.

  4. Open an MR in a project that has AI features enabled.

  5. Add at least 2 comments (with some markdown) to a review and then submit the review.

  6. Using rails console, confirm that the MergeRequest::ReviewLlmSummary records are created: MergeRequest::ReviewLlmSummary.find_by(review: Review.last).

  7. Click on View summary notes button in the MR dropdown on the right:

    image

  8. Observe that markdown comments are converted into HTML (`foo` becomes foo)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stanislav Lashmanov

Merge request reports

Loading