[go: up one dir, main page]

Skip to content

Specify minimum number of approvals for default branch

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

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)
Screenshot_2020-11-20_Repository___Gitlab_Org Settings___General
Specifying a number greater than 0 creates a minimum when adding an approval rule
image
Edited by 🤖 GitLab Bot 🤖