feature request: Allow CODEOWNERS to specify needing reviews from more than 1 team

The codeowners syntax allows you to specify more than 1 team such as:

* @org/developers @org/architecture

Using branch protection, you can require PR’s to be approved by codeowners, and specify the number of reviews it needs, however these reviews can be by members of either team (e.g. 2 developers, or 2 architects), and there’s no way to enforce it needing to be at least 1 from each. What I would like is to require at least 1 review from a member of the developers group, and 1 review from an architect separately. It doesn’t seem to be possible right now, but if there was a way to specify this such as:

@org/developers + @org/architecture

Which applied the specified number of reviews separately from each mentioned team, or an option in the branch protection settings, this would greatly help facilitate workflows requiring sign-off from more than one stakeholder team.

Thanks

1 Like

Hi @jeremyolliver !

Thanks for this thorough feedback!
We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

This makes total sense and I have wanted similar before in the mean time you can require more than 1 review which could help with that at some level in the mean time.

1 Like