Install rbenv.
Install nvm.
Install gh-gitlab-stats.
Unzip gl-exporter.zip.
Unzip ghec-importer.zip.
Edit setenv.sh file, populating the following environment variable:
export GITLAB_API_ENDPOINT=
export GITLAB_USERNAME=
export GITLAB_API_PRIVATE_TOKEN=
In the gl-exporter directory:
Run rbenv install
.
Run script/bootstrap
.
In the ghec-importer directory:
cd ghec-importer
npm set-script prepare ""
npm install
npm link
Source setenv.sh
file.
gh gitlab-stats --token $GITLAB_API_PRIVATE_TOKEN --output-file gl-stats.csv --hostname $GITLAB_HOST
Source setenv.sh
file.
./exe/gl_exporter --namespace mindfulrob --project superbigmonorepo -o migration_archive.tar.gz
Source setenv.sh
file.
ghec-importer import -a $GITHUB_TOKEN -t $ORG migration_archive.tar.gz