For our project we're using Github's branch protection to enforce at least 1 reviewer for all changes, no exceptions for administrators.
The day will come however, when we need to rush an emergency fix. This will require expedited merging of a branch, which can only happen if someone else is around to review. But what happens if no one is around?
We would need to bypass the code review requirement.
We could disable the code review requirement temporarily while merging, but that is not desirable because there's no insight into when that was done, and it's a solution that only works for admins.
I'd like to have an auditable way to do this. A common term for this is "break glass" ie. you're breaking the glass and doing an emergency merge and deploy, because it's an emergency and no one is around to review your code.
Has anyone worked out a way to achieve this on a Github protected branch?


