Add source_branch and additional_context to fix_pipeline button

What does this MR do and why?

This MR adds:

  1. the ability to provide the current (source) branch via props instead of only via provide
  2. the ability to pass along additional context

References

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. In GDK open a merge request with a failed pipeline, open the pipeline tabs
  2. Notice there is no button with "Fix with Duo"
  3. In Rails console enable the feature flag
Feature.enable(:ai_duo_agent_fix_pipeline_button)
  1. Go back to the merge request and refresh
  2. Notice the button "Fix with Duo"
  3. Optionally, if you've setup AI gateway and a runner, click on the button and verify it starts a Flow.

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

Edited by Fred de Gier

Merge request reports

Loading