Specify minimum number of approvals for default branch
GitLab offers a number of powerful controls to protect the default branch (usually master
or main
), allowing project maintainers to prevent anyone from pushing directly to the default branch, and requiring increasingly string merge request approvals. However, these controls can be circumvented by project maintainers/owners and can't be enforced by organization/instance administrators who want ensure a minimum level of security on their instances.
GitLab should allow group owners to configure a minimum level of branch protection for the default branch.
Proposal
Add the ability for group owners to configure, at the group-level the minimum number of approvals required for merge requests on the default branch
Group Settings > Repository (Current) | Group Settings > Repository (Proposed) |
---|---|
Specifying a number greater than 0 creates a minimum when adding an approval rule |
---|
Edited by Austin Regnery