Add branch selection to schedule form

What does this MR do and why?

Add branch selection to schedule form

  • allow for specific branches to be selected on the project and group level
  • add tests

EE: true

References

Screenshots or screen recordings

Project Group
Screenshot_2025-03-14_at_21.10.11 Screenshot_2025-03-14_at_21.23.35

How to set up and validate locally

  1. Upload a GitLab Ultimate license
  2. Enable the feature flag via terminal or http://gdk.test:3443/rails/features
echo "Feature.enable(:scheduled_pipeline_execution_policies)" | rails c
  1. Navigate to a project => Secure => Policies => New policy => Pipeline execution policy => Select "schedule a new" => Change branch type to specific
  2. Verify updating the branches updates the yaml for a project
  3. Verify a user can type in comma-separated branches for a group
  4. Navigate to/from yaml mode and verify the dropdowns are selected correctly

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

Merge request reports

Loading