seanrco
seanrco

Reputation: 1069

GitHub Branch Protection Disable Bypass

Starting to setup branch protection rules for our Main branches and currently have the following options enabled:

However I noticed in a PR there was an option to "Merge without waiting for requirements to be met (bypass branch protection)":

enter image description here

Is there a way to disable this option for all users? I did see an option for "Allow specified actors to bypass required pull requests", but is not really the same thing.

Thanks in advance!

Upvotes: 6

Views: 11778

Answers (2)

Manish Karkera
Manish Karkera

Reputation: 123

It's still in branch protection rules as mentioned in the accepted answer above, but its worded slightly different now. Branch protection rules

Upvotes: 9

rethab
rethab

Reputation: 8413

In the branch protection rules, there's a setting "Include administrators". Make sure to enable that as well.

include administrators screenshot

More information can be found in the docs.

Upvotes: 6

Related Questions