CODEOWNERS file should be able to set # of Approvals required

Current State:

  • If you want to require 2 or more members of a group or set of individuals to approve an MR before it can be merged, you can only do this via the gitlab rules, which cannot be captured in source control for a project

Desired State:

  • CODEOWNERS file has additional syntax to define how many approvals are needed from a specific group or set of individuals, so that the CODEOWNERS file has increased feature parity with rules

example:

# Global rule:
3[Global]
* @my/gitlab/group

would require 3 approvals, instead of just 1 approval

Edited by Ben Glasder