Mention branch protection ordering (#6406)

Co-authored-by: Jack Berg <jberg@newrelic.com>
This commit is contained in:
Trask Stalnaker 2024-05-09 11:23:44 -07:00 committed by GitHub
parent c7d472ad36
commit a855e1296e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ Repository settings in addition to what's documented already at
## Branch protections
The order of branch protection rules
[can be important](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules).
The branch protection rules below should be added before the `**/**` branch protection rule
(this may require deleting the `**/**` rule and recreating it at the end).
### `main`
* Require branches to be up to date before merging: UNCHECKED