Allow admin to merge without pull requestion approval on github protected branch

Viewed 481

I believe this is a slight variant of this question.

I'm the admin of a project and also (almost) sole developer but am adding collaborators. I have gitflow actions/workflows for automated testing. For myself (admin), I want this behavior in protected master:

  • All status checks must pass
  • Pull request review approvals are not required

Whereas for everyone else:

  • All status checks must pass
  • Pull request review approvals are required

Setting up required PR approval and required status checks works except it requires the admin to also get PR approval. If I exclude the admins from the branch protection it applies globally, so it allows merging without PR approval but also allows merging without passing status checks, which is not what I want.

0 Answers
Related