How to add GitHub branch protection rules | Scribe
    logged out logo

    How to add GitHub branch protection rules

    • GitHubGitHub
    Navigate to the repo you'd like to protect.
    Click "Settings"
    +00:00:02.4
    Click "Branches"
    +00:00:07.0
    Heads Up! There can only be one rule per branch, but each rule can have multiple conditions. If there is already a rule for a branch, just edit it.
    Click "Add rule"
    +00:00:16.2
    Click the "Branch name pattern" field.
    +00:00:19.2
    Type "master"
    +00:00:20.5
    Click the "Require pull request reviews before merging" field.
    +00:00:27.2
    Click the "Require status checks to pass before merging" field.
    +00:00:47.4
    Click "Create"
    +00:01:08.0
    Documents you might like
    0 Selected
    This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe