Skip to content

Add managing protected branches as custom permission

Jarka Košanová requested to merge 448823-protected-branches-cr into master

What does this MR do and why?

It adds managing protected branches as a custom ability.

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

Screen_Recording_2024-08-12_at_18.09.50

How to set up and validate locally

  1. Create a new member group, that enables "manage protected branch" ability, for self-managed on admin - Roles and permissions page, eg. http://gdk.test:3000/admin/application_settings/roles_and_permissions
  2. Visit any group or project member pages such as http://gdk.test:3000/groups/flightjs/-/group_members and assign this custom role to a user
  3. Impersonate this user and go to the project settings - repository page, eg. http://gdk.test:3000/flightjs/Flight/-/settings/repository
  4. Make sure you see Branch rules and Protected branches section
  5. Play around with protected branches

Related to #448823 (closed)

Edited by Jarka Košanová

Merge request reports

Loading