How to add GitHub branch protection rules | Scribe

    How to add GitHub branch protection rules

    • |
    • 9 steps |
    • 2 minutes
    1
    Navigate to the repo you'd like to protect.
    2
    Click "Settings"
    3
    Click "Branches"
    alert ordinal icon
    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.
    4
    Click "Add rule"
    5
    Click the "Branch name pattern" field.
    6
    Type "master"
    7
    Click the "Require pull request reviews before merging" field.
    8
    Click the "Require status checks to pass before merging" field.
    9
    Click "Create"