Issue to MR button

What does this MR do and why?

This MR adds a button to trigger an Agent session (formerly Duo Workflow) via an existing component. The button is controlled via a feature flag (default disabled) and will be used for internal testing, hence some inefficiencies in the code.

The following issues will resolve the inefficiencies and prepare the code for broader adoption: #548238 (closed)

Please review this MR in the context of a first iteration behind a feature flag.

References

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Configure GDK to work with Duo Workflow: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/duo_workflow.md
  2. Enable the feature flags
Feature.enable(:duo_workflow_in_ci)
Feature.enable(:ai_duo_agent_issue_to_mr)
  1. In the Duo Workflow enabled project, open an issue, you should see the button "Generate MR with Duo: image
  2. Optionally click on it, it will start the workflow, if you have the runner setup it will create the MR but this aspect is out of scope for this MR.

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

Edited by Fred de Gier

Merge request reports

Loading