Add source_branch and additional_context to fix_pipeline button
What does this MR do and why?
This MR adds:
- the ability to provide the current (source) branch via props instead of only via provide
- the ability to pass along additional context
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- In GDK open a merge request with a failed pipeline, open the pipeline tabs
- Notice there is no button with "Fix with Duo"
- In Rails console enable the feature flag
Feature.enable(:ai_duo_agent_fix_pipeline_button)
- Go back to the merge request and refresh
- Notice the button "Fix with Duo"
- 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