Skip to content

Commit

Permalink
Docs for "Push Rulesets - [GA]" (#51686)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
  • Loading branch information
jc-clark and sophietheking authored Sep 10, 2024
1 parent f224787 commit 6849380
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ You can create rulesets in your organization to control how users can interact w

{% data reusables.repositories.rulesets-push-rulesets-intro %}

{% data reusables.repositories.rulesets-push-rules-beta-note %}

{% endif %}

Forks do not inherit branch or tag rulesets from their upstream repositories. However, forks owned by your organization are subject to the rulesets you create, like any other repository.
Expand Down Expand Up @@ -88,9 +86,7 @@ To import one of the prebuilt rulesets by {% data variables.product.prodname_dot

## Creating a push ruleset

{% data reusables.repositories.rulesets-push-rules-beta-note %}
>
> This ruleset will enforce push restrictions for this repository's entire fork network.
{% data reusables.repositories.push-rules-fork-network-note %}

You can create a push ruleset for private or internal repositories in your organization.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ You can use protected branches to prevent pull requests from being merged into i

### Use push rulesets

{% data reusables.repositories.rulesets-push-rules-beta-note %}

{% data reusables.repositories.push-rulesets-overview %}

For more information, see "[AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets#push-rulesets)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ Public forks do not inherit the permissions structure of the upstream repository

### About push rulesets for forked repositories

{% data reusables.repositories.rulesets-push-rules-beta-note %}

{% data reusables.repositories.rulesets-push-rulesets-fork-network-information %}

For more information, see "[AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets#push-rulesets)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ For organizations on the {% data variables.product.prodname_enterprise %} and {%

You can use rulesets to target branches or tags in a repository or to block pushes to a repository and the repository's entire fork network.

{% data reusables.repositories.rulesets-push-rules-beta-note %}

{% endif %}

{% ifversion push-rule-delegated-bypass %}
Expand All @@ -46,8 +44,6 @@ For each ruleset you create, you specify which branches or tags in your reposito

### Push rulesets

{% data reusables.repositories.rulesets-push-rules-beta-note %}

{% data reusables.repositories.push-rulesets-overview %}

{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ You can create rulesets to control how users can interact with selected branches

{% data reusables.repositories.rulesets-push-rulesets-intro %}

{% data reusables.repositories.rulesets-push-rules-beta-note %}

{% endif %}

When you create a ruleset, you can allow certain users to bypass the rules in the ruleset.
Expand Down Expand Up @@ -85,9 +83,7 @@ To import one of the prebuilt rulesets by {% data variables.product.prodname_dot

## Creating a push ruleset

{% data reusables.repositories.rulesets-push-rules-beta-note %}
>
> This ruleset will enforce push restrictions for this repository's entire fork network.
{% data reusables.repositories.push-rules-fork-network-note %}

You can create a push ruleset for private or internal repositories.

Expand Down
2 changes: 2 additions & 0 deletions data/reusables/repositories/push-rules-fork-network-note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> [!NOTE]
> This ruleset will enforce push restrictions for this repository's entire fork network.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Your repository may have push rulesets enabled. Push rulesets may block creating a new file in the repository based on certain restrictions. Push rulesets apply to the repository's entire fork network. Which means that any push rulesets that are configured in the root repository will also apply to every fork of the repository. For more information, see "[AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets#about-rulesets)."
{% data reusables.repositories.rulesets-push-rules-beta-note %}

0 comments on commit 6849380

Please sign in to comment.