Skip to content

Commit

Permalink
Merge pull request github#30778 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Dec 20, 2023
2 parents d771e1e + a84a299 commit b418d48
Show file tree
Hide file tree
Showing 16 changed files with 257 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can enable step debug logging in {% data variables.product.prodname_actions
## Creating {% data variables.product.prodname_codeql %} debugging artifacts

You can obtain artifacts to help you debug {% data variables.product.prodname_codeql %}.
The debug artifacts will be uploaded to the workflow run as an artifact named `debug-artifacts`. The data contains the {% data variables.product.prodname_codeql %} logs, {% data variables.product.prodname_codeql %} database(s), and any SARIF file(s) produced by the workflow.
The debug artifacts will be uploaded to the workflow run as an artifact named `debug-artifacts`. The data contains the {% data variables.product.prodname_codeql %} logs, {% data variables.product.prodname_codeql %} database(s), extracted source code files, and any SARIF file(s) produced by the workflow.

These artifacts will help you debug problems with {% data variables.product.prodname_codeql %} {% data variables.product.prodname_code_scanning %}. If you contact GitHub support, they might ask for this data.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Failures that include a `404` status code usually indicate a typo in one of your

### `Archive generation failed` response

If you receive a `Archive generation failed...` response when migrating from {% data variables.product.prodname_ghe_server %}, your repository is probably too large. For more information about repository size limits, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/migration-support-for-github-enterprise-importer#:~:text=Different%20size%20limits%20per%20repository%20apply%20depending%20on%20your%20GHES%20version.)."
If you receive a `Archive generation failed...` response when migrating from {% data variables.product.prodname_ghe_server %}, your repository is probably too large. For more information about repository size limits, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-between-github-products/about-migrations-between-github-products#data-that-is-migrated-from-github-enterprise-server)."

First, try excluding releases from the migration by using the `--skip-releases` flag with the `migrate-repo` command.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
title: About migrations between GitHub products
shortTitle: About migrations
intro: 'Learn which data {% data variables.product.prodname_importer_proper_name %} can migrate between {% data variables.product.company_short %} products.'
versions:
fpt: '*'
ghes: '*'
ghec: '*'
---

## About migrations between GitHub products

With {% data variables.product.prodname_importer_proper_name %}, you can migrate data from {% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_ghe_cloud %}, or migrate data between accounts on {% data variables.product.prodname_ghe_cloud %}. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)."

If your migration source is another account on {% data variables.product.prodname_dotcom_the_website %}, you can migrate individual repositories between organizations, or migrate entire organizations between enterprises. If your migration source is {% data variables.product.prodname_ghe_server %}, you can migrate repositories.

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.

## Data that is migrated from {% data variables.product.prodname_ghe_server %}

To migrate from {% data variables.product.prodname_ghe_server %} (GHES), you must have GHES version 3.4.1 or higher. The data that is migrated depends on the version you're using.

Item | GHES 3.4.1+ | GHES 3.5.0+ |
---- | ---------- | ---------- |
Git source (including commit history) | **X** | **X** |
Pull requests | **X** | **X** |
Issues | **X** | **X** |
Milestones | **X** | **X** |
Wikis | **X** | **X** |
Projects (classic) at the repository level | **X** | **X** |
{% data variables.product.prodname_actions %} workflows | **X** | **X** |
Commit comments | **X** | **X** |
Active webhooks | **X** | **X** |
Branch protections | **X** | **X** |
{% data variables.product.prodname_pages %} settings | **X** | **X** |
User history for the above data | **X** | **X** |
Releases | | **X** |

Different size limits per repository apply depending on your GHES version.

Limit | GHES <3.8.0 | GHES 3.8.0+ |
----- | ----------- | ----------- |
Git source | 2GB | 10GB
Metadata | 2GB | 10GB

{% data reusables.enterprise-migration-tool.data-not-migrated %}
- Teams
- User or team access to the repository
- Repository settings for pull requests

### Branch protections

{% data reusables.enterprise-migration-tool.branch-protection-migration %}

## Data that is migrated from other accounts on {% data variables.product.prodname_dotcom_the_website %}

If your migration source is another account on {% data variables.product.prodname_dotcom_the_website %}, you can migrate individual repositories between organizations, or migrate entire organizations between enterprises.

### Migrated data for an organization

When you migrate an organization, a new organization is created within the destination enterprise account. Then, the following data is migrated to the new organization.

- Teams
- Repositories
- Team access to repositories
- Member privileges
- Organization-level webhooks (must be re-enabled after your migration, see "[Enabling webhooks](/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products#enabling-webhooks)")
- Default branch name for new repositories created in the organization

All repositories are migrated with private visibility. If you want to set a repository's visibility to public or internal, you can do this after the migration using the UI or API.

Team membership is **not** migrated. After the migration, you'll need to add members to migrated teams. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products#recreating-teams)."

{% note %}

**Note:** {% data reusables.enterprise-migration-tool.team-references %} For more information about how to prevent and resolve these issues, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/troubleshooting-your-migration-with-github-enterprise-importer#team-references-are-broken-after-an-organization-migration)."

{% endnote %}

### Migrated data for a repository

When you migrate a repository, either directly or as part of an organization migration, only the following data is migrated.

- Git source (including commit history)
- Pull requests
- Issues
- Milestones
- Wikis (excluding attachments)
- Projects (classic) at the repository level
- {% data variables.product.prodname_actions %} workflows
- Commit comments
- Active webhooks (must be re-enabled after your migration, see "[Enabling webhooks](/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products#enabling-webhooks)")
- Repository topics
- Repository settings
- Branch protections (see "[Branch protections](#branch-protections)" for more details)
- {% data variables.product.prodname_pages %} settings
- Autolink references
- {% data variables.product.prodname_GH_advanced_security %} settings
- Pull request settings
- Automatically delete head branches
- Allow auto-merge
- Allow merge commits (commit message setting is reset to the default message)
- Allow squash merging (commit message setting is reset to the default message)
- Allow rebase merging
- Releases (up to 10 GB per repository)
- User history for the above data

{% data reusables.enterprise-migration-tool.data-not-migrated %}
- User access to the repository

When you migrate a repository directly, teams and team access to repositories are not migrated.

#### Branch protections

{% data reusables.enterprise-migration-tool.branch-protection-migration %}

## Limitations on migrated data

{% data reusables.enterprise-migration-tool.limitations-of-migrated-data %}

## Getting started

Before you migrate between {% data variables.product.company_short %} products, you should plan out how you will run your migration. Before migrating any data, you will need to choose someone to run the migration. You must grant that person the necessary access for both the source and the destination of the migration. We also recommend you run a trial migration first.

For an overview of the migration process from beginning to end, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products)."
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ versions:
ghes: '*'
ghec: '*'
children:
- /about-migrations-between-github-products
- /overview-of-a-migration-between-github-products
- /migrating-repositories-from-github-enterprise-server-to-github-enterprise-cloud
- /migrating-repositories-from-githubcom-to-github-enterprise-cloud
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Overview of a migration between GitHub products
shortTitle: Overview
shortTitle: Overview of a migration
intro: 'Learn how to complete the entire process of migrating from one {% data variables.product.company_short %} product to another with {% data variables.product.prodname_importer_proper_name %}, from planning to implementation to completing follow-up tasks.'
versions:
fpt: '*'
Expand All @@ -12,11 +12,11 @@ redirect_from:
- /migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/migrating-between-github-products-with-github-enterprise-importer
---

## About migrations between {% data variables.product.company_short %} products
## Overview

With {% data variables.product.prodname_importer_proper_name %}, you can migrate to {% data variables.product.prodname_ghe_cloud %}. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)".

If you're migrating between {% data variables.product.company_short %} products, such as from {% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_ghe_cloud %}, you can use this guide to plan and implement your migration and complete follow-up tasks. For a full list of supported migration paths, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/migration-support-for-github-enterprise-importer#supported-migration-paths)."
If you're migrating between {% data variables.product.company_short %} products, such as from {% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_ghe_cloud %}, you can use this guide to plan and implement your migration and complete follow-up tasks. For a full list of supported migration paths, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer#supported-migration-paths)."

## Planning your migration

Expand Down Expand Up @@ -64,7 +64,7 @@ Migration timing is largely based on the number of pull requests and issues in a

Ensure that you and your stakeholders understand what data can be migrated by {% data variables.product.prodname_importer_proper_name %}.

1. Review the data that's migrated for your migration source. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/migration-support-for-github-enterprise-importer)."
1. Review the data that's migrated for your migration source. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-between-github-products/about-migrations-between-github-products)."
1. Make a list of any data that you'll need to manually migrate or recreate.

### Who will run the migration?
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: About migrations from Azure DevOps to GitHub Enterprise Cloud
shortTitle: About migrations
intro: 'Learn which data {% data variables.product.prodname_importer_proper_name %} can migrate.'
versions:
fpt: '*'
ghes: '*'
ghec: '*'
---

## About migrations from Azure DevOps

You can use {% data variables.product.prodname_importer_proper_name %} to migrate repositories from Azure DevOps to {% data variables.product.prodname_ghe_cloud %}.

You can only use {% data variables.product.prodname_importer_proper_name %} to migrate from Azure DevOps Cloud, not from Azure DevOps Server. If you currently use Azure DevOps Server and want to migrate to {% data variables.product.prodname_dotcom %}, you can migrate to Azure DevOps Cloud first. For more information, see [Migrate to Azure DevOps](https://azure.microsoft.com/en-us/services/devops/migrate/) on the Azure site.

## Data that is migrated

We currently only support migrating the following repository data from Azure DevOps to {% data variables.product.prodname_ghe_cloud %}.

- Git source (including commit history)
- Pull requests
- User history for pull requests
- Work item links on pull requests
- Attachments on pull requests
- Branch protections for the repository (user-scoped branch protections not included)

If you want to migrate Azure Pipelines to {% data variables.product.prodname_actions %}, contact your {% data variables.product.prodname_dotcom %} account manager.

## Limitations on migrated data

{% data reusables.enterprise-migration-tool.limitations-of-migrated-data %}

## Getting started

Before you migrate from Azure DevOps, you should plan out how you will run your migration. Before migrating any data, you will need to choose someone to run the migration. You must grant that person the necessary access for both the source and the destination of the migration. We also recommend you run a trial migration first.

For an overview of the migration process from beginning to end, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-from-azure-devops-to-github-enterprise-cloud/overview-of-a-migration-from-azure-devops-to-github-enterprise-cloud)."
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ versions:
ghes: '*'
ghec: '*'
children:
- /about-migrations-from-azure-devops-to-github-enterprise-cloud
- /overview-of-a-migration-from-azure-devops-to-github-enterprise-cloud
- /migrating-repositories-from-azure-devops-to-github-enterprise-cloud
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Overview of a migration from Azure DevOps to GitHub Enterprise Cloud
shortTitle: Overview
shortTitle: Overview of a migration
intro: 'Learn how to complete the entire process of migrating from Azure DevOps to {% data variables.product.prodname_dotcom %} with {% data variables.product.prodname_importer_proper_name %}, from planning to implementation to completing follow-up tasks.'
versions:
fpt: '*'
Expand All @@ -12,7 +12,7 @@ redirect_from:
- /migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/migrating-from-azure-devops-with-github-enterprise-importer
---

## About migrations from Azure DevOps
## Overview

With {% data variables.product.prodname_importer_proper_name %}, you can migrate to {% data variables.product.prodname_ghe_cloud %} on a repository-by-repository basis. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)".

Expand Down Expand Up @@ -56,7 +56,7 @@ Because permissions work differently in {% data variables.product.prodname_dotco

Service hooks are not migrated from ADO, so you will need to recreate them separately.

1. Review the data that's migrated from Azure DevOps. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/migration-support-for-github-enterprise-importer#azure-devops-migration-support)."
1. Review the data that's migrated from Azure DevOps. For more information, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-from-azure-devops-to-github-enterprise-cloud/about-migrations-from-azure-devops-to-github-enterprise-cloud)."
1. Make a list of any data that you'll need to manually migrate or recreate.

### Who will run the migration?
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: About migrations from Bitbucket Server to GitHub Enterprise Cloud
shortTitle: About migrations
intro: 'Learn which data {% data variables.product.prodname_importer_proper_name %} can migrate.'
versions:
fpt: '*'
ghes: '*'
ghec: '*'
---

## About migrations from Bitbucket Server

You can use {% data variables.product.prodname_importer_proper_name %} to migrate repositories from Bitbucket Server to {% data variables.product.prodname_ghe_cloud %}. Migrations from Bitbucket Server are only supported for Bitbucket Server or Bitbucket Data Center version 5.14+ or higher.

## Data that is migrated

We currently only support migrating the following repository data from Bitbucket Server to {% data variables.product.prodname_ghe_cloud %}.

- Git source (including commit history)
- Pull requests (including comments, pull request reviews, pull request review comments at the file and line level, required reviewers, and attachments)

## Data that is not migrated

Currently, the following data is **not** migrated.

- Personal repositories owned by users
- Branch permissions
- Commit comments
- Repository settings
- CI pipelines

## Limitations on migrated data

{% data reusables.enterprise-migration-tool.limitations-of-migrated-data %}

## Getting started

Before you migrate from Bitbucket Server, you should plan out how you will run your migration. Before migrating any data, you will need to choose someone to run the migration. You must grant that person the necessary access for both the source and the destination of the migration. We also recommend you run a trial migration first.

For an overview of the migration process from beginning to end, see "[AUTOTITLE](/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/overview-of-a-migration-from-bitbucket-server-to-github-enterprise-cloud)."
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ versions:
ghes: '*'
ghec: '*'
children:
- /about-migrations-from-bitbucket-server-to-github-enterprise-cloud
- /overview-of-a-migration-from-bitbucket-server-to-github-enterprise-cloud
- /migrating-repositories-from-bitbucket-server-to-github-enterprise-cloud
---
Expand Down
Loading

0 comments on commit b418d48

Please sign in to comment.