Skip to content

Update group policy to use admin_push_rules

What does this MR do and why?

  • Applies the custom role ability admin_push_rules to group policy, so that when a user is assigned this ability they can configure push rule settings at the group level. Project level changes will be in a future MR.
  • Follows from !147872 (merged)

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

group-push-rules

How to set up and validate locally

  1. Enable the custom_ability_admin_push_rules Feature Flag:

    Feature.enable(:custom_ability_admin_push_rules)
  2. Log-in as an owner of a group and navigate to Settings > Roles and Permissions

  3. Create a custom role with Admin push rules checkbox enabled.

  4. Navigate to the group's Manage > Members and assign this custom role to a user

  5. Log-in as that user and navigate to the group. You should see Settings > Repository where you can see a section for Pre-defined push rules.

Related to #421786 (closed)

Edited by Hinam Mehra

Merge request reports