1
0
mirror of synced 2026-01-08 12:01:53 -05:00

Clarify branch protection rules - Restrict creation of matching branches (#32002)

This commit is contained in:
chiph
2022-10-26 10:32:44 -05:00
committed by GitHub
parent 179f833d12
commit 22f71ac7a1

View File

@@ -187,7 +187,7 @@ When you enable branch restrictions, only users, teams, or apps that have been g
Optionally, you can apply the same restrictions to the creation of branches that match the rule. For example, if you create a rule that only allows a certain team to push to any branches that contain the word `release`, only members of that team would be able to create a new branch that contains the word `release`.
{% endif %}
You can only give push access to a protected branch, or give permission to create a matching branch, to users, teams, or installed {% data variables.product.prodname_github_apps %} with write access to a repository. People and apps with admin permissions to a repository are always able to push to a protected branch or create a matching branch.
You can only give push access to a protected branch, or give permission to create a matching branch, to users, teams, or installed {% data variables.product.prodname_github_apps %} with write access to a repository. People and apps with admin permissions to a repository are always able to push to a protected branch{% ifversion restrict-pushes-create-branch %} or create a matching branch{% endif %}.
### Allow force pushes