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 |
---|---|
How to set up and validate locally
-
Enable
automatically_summarize_mr_review
feature flag. -
Enable
summarize_diff_automatically
feature flag. -
Follow https://docs.gitlab.com/ee/development/ai_features.html#test-ai-features-locally.
-
Open an MR in a project that has AI features enabled.
-
Add at least 2 comments (with some markdown) to a review and then submit the review.
-
Using rails console, confirm that the
MergeRequest::ReviewLlmSummary
records are created:MergeRequest::ReviewLlmSummary.find_by(review: Review.last)
. -
Click on
View summary notes
button in the MR dropdown on the right: -
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.
-
I have evaluated the MR acceptance checklist for this MR.