Add EE generator action to fill in MR template with generated content
For #409509 (closed)
What does this MR do and why?
Integrates the aiFillDescriptionMutation
GraphQL endpoint into the Markdown editor for the new and edit MR pages.
This adds an "AI Actions" button and a sub-menu option "Fill in merge request template".
Clicking this option makes a request to our API which eventually returns with the existing template in the MR description box filled in with whatever the generator decides should go in it.
This is part of the Code Review team's goal of shipping more "AI" experiments.
Screenshots or screen recordings
Before | After |
---|---|
generator-mr-description-before | generator-mr-description-after |
How to set up and validate locally
- Have an EE install for your GDK.
- Follow the first three validation steps of the API implementation to enable the backend feature.
- Go to the create or edit page for an MR.
- Provide some content (markdown headers are okay).
- Use the "AI Actions" button to fill in your provided content.
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.
Edited by Thomas Randolph