Start by using GitHub Actions Importer (GAI) Follow the getting started instructions to install and configure GAI.
gh actions-importer audit circle-ci --output-dir audit
Start by using GitHub Actions Importer (GAI) Follow the getting started instructions to install and configure GAI.
gh actions-importer audit circle-ci --output-dir audit
The following example will remove the teams from the migration_archive.tar.gz
file.
export GHEC_IMPORTER_ADMIN_TOKEN="xxxx"
ghec-importer prepare-archive -r teams migration_archive.tar.gz
The following example will import the migration_archive.tar.gz
into the robandpdx-migaration5
org and enable actions on the repo. If there is a repo name conflict, if will be resolved by adding the source org name to the repo name as a prefix.
Sometimes history rewrites are required in order to migrate repositories into github.com. Several factors can dictate the need to rewrite history of a repository:
Although rewriting history might not be required for your repository to migrate to github.com, you may consider rewriting history for several reasons:
Getting a shell on a GH runner is pretty easy. First, create a linux VM in your favorite cloud provider. Be sure to allow inbound traffic on port 22 and 1337. SSH into that VM and execute the following command:
nc -nvlp 1337
Then run the following workflow in GH actions:
name: Reverse shell
These instructions explain how to migrate a repo from GitHub Enterprise Server to GitHub Enterprise Cloud using the gh gei
CLI when either:
The following instructions assume that you have curl
and jq
installed. There are available for Linux, macOS and Windows Subsystem for Linux (WSL).
github.acmecorp.com
) and expose it as the GHES_HOST
environment variable: export GHES_HOST=github.acmecorp.com
.GHES_ORGANIZATION
environment variable: export GHES_ORGANIZATION=engineering
.GHES_REPO
environment variable: export GHES_REPO=webapp
.This document provides the steps involved in migrating source code from Gerrit to GitHub. The CI/CD setup part is currently out of scope of this document.
Below is a guided procedure to ensure a migration from Gerrit to GitHub.
The following steps act as high-level phases when implementing a migration project:
ghstack
Stacked diffs and ghstack
Ghstack is a little rough around the edges. It seems to work as advertised, but some of the ways it works are a bit quirky. The following is a list of things I don't like about ghstack:
In order to iterate faster on workflows it is necessary to setup an environment to run the test.
#!/bin/bash