Home > Software design >  GitHub Branch Protection Disable Bypass
GitHub Branch Protection Disable Bypass

Time:08-15

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

  • Require a pull request before merging

    • Require approvals = 1
  • Require conversation resolution before merging

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!

CodePudding user response:

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.

  • Related