Skip to content

Commit ef7a3ab

Browse files
CopilotboylejjCopilot
authored
Document repository migrations bypass for rulesets (#59102)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: boylejj <95828167+boylejj@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4fcfdae commit ef7a3ab

8 files changed

Lines changed: 22 additions & 4 deletions

content/migrations/ado/migrating-repositories-from-azure-devops-to-github-enterprise-cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ contentType: other
2727
{% endapi %}
2828

2929
{% ifversion repo-rules-enterprise %}
30-
{% data reusables.enterprise-migration-tool.deploy-key-bypass %}
30+
{% data reusables.enterprise-migration-tool.repository-migrations-bypass %}
3131
{% endif %}
3232

3333
## Prerequisites

content/migrations/using-github-enterprise-importer/migrating-between-github-products/about-migrations-between-github-products.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If your migration source is an account on {% data variables.product.prodname_dot
2323
The data that {% data variables.product.prodname_importer_proper_name %} migrates depends on the source of the migration and whether you are migrating a repository or organization.
2424

2525
{% ifversion repo-rules-enterprise %}
26-
{% data reusables.enterprise-migration-tool.deploy-key-bypass %}
26+
{% data reusables.enterprise-migration-tool.repository-migrations-bypass %}
2727
{% endif %}
2828

2929
## Considerations for migrations to {% data variables.product.prodname_ghe_cloud %}

content/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-organizations-from-githubcom-to-github-enterprise-cloud.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Migrations to {% data variables.product.prodname_ghe_cloud %} include migrations
2626
{% data reusables.enterprise-migration-tool.gei-tool-switcher-cli %}
2727
{% endapi %}
2828

29+
{% ifversion repo-rules-enterprise %}
30+
{% data reusables.enterprise-migration-tool.repository-migrations-bypass %}
31+
{% endif %}
32+
2933
## Prerequisites
3034

3135
* {% data reusables.enterprise-migration-tool.github-trial-prerequisite %}

content/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-github-enterprise-server-to-github-enterprise-cloud.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ To migrate your repositories from {% data variables.product.prodname_ghe_server
4747

4848
{% endapi %}
4949

50+
{% ifversion repo-rules-enterprise %}
51+
{% data reusables.enterprise-migration-tool.repository-migrations-bypass %}
52+
{% endif %}
53+
5054
## Prerequisites
5155

5256
* {% data reusables.enterprise-migration-tool.github-trial-prerequisite %}

content/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-githubcom-to-github-enterprise-cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Migrations to {% data variables.product.prodname_ghe_cloud %} include migrations
2727
{% endapi %}
2828

2929
{% ifversion repo-rules-enterprise %}
30-
{% data reusables.enterprise-migration-tool.deploy-key-bypass %}
30+
{% data reusables.enterprise-migration-tool.repository-migrations-bypass %}
3131
{% endif %}
3232

3333
## Prerequisites

content/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/migrating-repositories-from-bitbucket-server-to-github-enterprise-cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can migrate individual repositories or all repositories from a BitBucket Ser
1919
At this time, migrating from Bitbucket Server with the {% data variables.product.prodname_dotcom %} API is not supported.
2020

2121
{% ifversion repo-rules-enterprise %}
22-
{% data reusables.enterprise-migration-tool.deploy-key-bypass %}
22+
{% data reusables.enterprise-migration-tool.repository-migrations-bypass %}
2323
{% endif %}
2424

2525
## Prerequisites
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
> [!NOTE] If the repository you are migrating has rulesets that the incoming repository doesn't match, the migration will be blocked. To bypass these rulesets and allow the migration, you can apply a ruleset bypass for all deploy keys in the target organization.
22
>
33
> Repository rulesets can be set at the organization level. If the incoming repository does not match any of these rulesets, you will need to use the deploy key bypass for each one. See [AUTOTITLE](/organizations/managing-organization-settings/creating-rulesets-for-repositories-in-your-organization#granting-bypass-permissions-for-your-branch-or-tag-ruleset).
4+
>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
If the destination organization or enterprise of your migration has rulesets enabled, the migrated repository's history may violate those rules. To allow the migration without disabling your rulesets, add "Repository migrations" to the bypass list for each applicable ruleset. This bypass applies only during the migration. Once complete, rulesets will be enforced on all new contributions.
2+
3+
To configure the bypass:
4+
5+
1. Navigate to each enterprise or organization ruleset.
6+
1. In the "Bypass list" section, click **Add bypass**.
7+
1. Select **Repository migrations**.
8+
9+
For more information, see [AUTOTITLE](/organizations/managing-organization-settings/creating-rulesets-for-repositories-in-your-organization#granting-bypass-permissions-for-your-branch-or-tag-ruleset).

0 commit comments

Comments
 (0)