Restrict protected branch deletion to Owners / No One
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Release notes
Previously, Protected branches could be deleted by Maintainer-level users and above via the UI or API. This new feature provides further restrictions on the ability to delete protected branches to only project Owners. Additionally, this setting can now be enforced via inheritance to apply to all projects in a group to further restrict the ability to delete a protected branch.
Problem to solve
A Large Saas Customer contacted Support in this ticket to indicate their interest in additional features regarding protected branches. Specifically, they would like to see:
- An option to update protected branch deletion protection to only Owners (or "No one", requiring a settings change to make the option available again in the UI), to limit deletion capability for Maintainers.
- The ability to enforce this deletion at a higher group level, to apply to all subgroups and projects.
Intended users
Available Tier
- Premium
- Ultimate
Edited by 🤖 GitLab Bot 🤖