Skip to content

Commit

Permalink
Update managing-a-branch-protection-rule.md (#39236)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
  • Loading branch information
patrick-knight and sophietheking authored Jul 21, 2023
1 parent 7365d26 commit 9695207
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ topics:
---
## About branch protection rules

You can enforce certain workflows or requirements before a collaborator can push changes to a branch in your repository, including merging a pull request into the branch, by creating a branch protection rule.
You can enforce certain workflows or requirements before a collaborator can push changes to a branch in your repository, including merging a pull request into the branch, by creating a branch protection rule. Actors may only be added to bypass lists when the repository belongs to an organization.

By default, each branch protection rule disables force pushes to the matching branches and prevents the matching branches from being deleted. You can optionally disable these restrictions and enable additional branch protection settings.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ For more information about each of the available branch protection settings, see

When you create a branch rule, the branch you specify doesn't have to exist yet in the repository.

{% note %}

**Note:** Actors may only be added to bypass lists when the repository belongs to an organization.

{% endnote %}

{% data reusables.repositories.navigate-to-repo %}
{% data reusables.repositories.sidebar-settings %}
{% data reusables.repositories.repository-branches %}
Expand Down

0 comments on commit 9695207

Please sign in to comment.