Skip to content

Add EE generator action to fill in MR template with generated content

Thomas Randolph requested to merge tor/feature/ai/generate-mr-description into master

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

  1. Have an EE install for your GDK.
  2. Follow the first three validation steps of the API implementation to enable the backend feature.
  3. Go to the create or edit page for an MR.
  4. Provide some content (markdown headers are okay).
  5. 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.

Edited by Thomas Randolph

Merge request reports

Loading