Skip to content

Override permissions for protected branches with wildcard

Problem to solve

When setting a protected "root" branch name with a wildcard (such as release/*) and then creating other branches that make use of the "root" branch name (such as release/test/branch) with different push/merge permissions, the permissions on the "root" branch name (release/*) will override the other branches (release/test/branch).

Pasted_Image_4_12_19__3_58_PM

This can lead to users being able to think they can set the permissions on a branch when they can't. We should check first if there are any restrictive permissions set on specific branches before we apply the wildcard permissions.

https://gitlab.zendesk.com/agent/tickets/118328

Edited by Cindy Pallares 🦉