Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches
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
What part(s) of the article would you like to see updated?
Something should mention that one can't have two branch protection rules that match the same branch, or if one can, it should explain how priority works.
Searching for conflict
only shows hits for merge conflict
.
Note: it appears impossible to deep link to any of the steps in https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#creating-a-branch-protection-rule which means I can't link to:
Under "Branch name pattern", type the branch name or pattern you want to protect.
Offhand, text should probably be included here warning that one should work to avoid having patterns in branch protection rules that conflict.