How to allow maintainers to merge without required approvals

Hi,

We’re getting some more members into the team and are adjusting our permissions. It’s an open source project within an organization with some admins. But also some maintainers that help with reviews, merging, releases, etc.

We have a basic rule to have 2 required approvals on protected branches (master, dev, release/, hotfix/).

However we want to give some of the maintainers (or all of them , doesn’t really matter for this question), permission to merge regardless of approvals.

The reason for this is that

  • sometimes a hotfix is needed to master quickly and we can’t wait 1 or 2 days for all the approvals to
    arrive
  • sometimes we need to do git flow stuff like merge a release branch back into dev or a hotfix branch into master, but also back into dev and possible into a release branch.
    So sometimes for 1 change you need 2 or 3 PRs each with 2 or 3 approvals, which makes it a pain to manage. We would like to allow (some) maintainers to do this maintenance kind of stuff.

From the permission help page it seems this is not possible? The only option seems to be to make the maintainers admin of the repo, which would be taking it too far permission wise.

https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization

Anything I’m missing? Alternative approaches?

Valentijn

Hi there Valentijn! :wave: Welcome to the Community!

I’m afraid you’re correct that the maintainers would need to be full admins to ignore the required reviews and merge anyway, sorry!

We’re always working to improve GitHub, and the permissions system in organizations is undergoing a lot of work on it at the moment, so perhaps you’d like to submit a feature request through our official product feedback form so that our product team can see exactly how you’d like these branch protection rules to work?

I did that already, but not sure where that is going or is being tracked.

I’m afraid we don’t have an externally visible feature request tracker at the moment, so it is a bit of a black box. Sorry about that!