Skip to content

Use all_protected_branches in resolver

What does this MR do and why?

Use all_protected_branches in branch rules resolver to include group level protected branches in graphql responses.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot 2024-07-05 at 2.32.34 PM.png Screenshot_2024-07-05_at_2.22.36_PM

How to set up and validate locally

  1. Enable the group_protected_branches feature flag
  2. Create a group and a project within that group
  3. Create a protected branch for the group
  4. See the protected branch reflected under branch rules for the project (Settings -> Repository -> Branch Rules)

Related to #387649 (closed)

Edited by Jerry Seto

Merge request reports