Skip to content

Konard/gh-org-migrator

Repository files navigation

gh-org-migrator (GitHub Organization Migrator)

A tool to migrate organization

JavaScript version (the only one recommended at the moment)

  1. Install dependencies
yarn
  1. Create .env file:
touch .env
nano .env
GITHUB_ACCESS_TOKEN=
GITFLIC_ACCESS_TOKEN=
SOURCE_ORGANIZATION=deep-foundation
TARGET_ORGANIZATION=link-foundation
  1. Download data from source organization
node pull.js
  1. Upload data to target organization
node push.js

Push repositories

node push-repositories.js 2>&1 | tee push-repositories.log.txt
node push-repositories.js > >(tee -a push-repositories.stdout.log.txt) 2> >(tee -a push-repositories.stderr.log.txt >&2)

Push repositories to GitFlic

node push-repositories-to-gitflic.js 2>&1 | tee push-repositories-to-gitflic.log.txt
node push-repositories-to-gitflic.js > >(tee -a push-repositories-to-gitflic.stdout.log.txt) 2> >(tee -a push-repositories-to-gitflic.stderr.log.txt >&2)

Push issues

node push-issues.js 2>&1 | tee push-issues.log.txt
node push-issues.js > >(tee -a push-issues.stdout.log.txt) 2> >(tee -a push-issues.stderr.log.txt >&2)

Push code commits

node push-code-commits.js 2>&1 | tee push-code-commits.log.txt
node push-code-commits.js > >(tee -a push-code-commits.stdout.log.txt) 2> >(tee -a push-code-commits.stderr.log.txt >&2)

Push code commits to GitFlic

node push-code-commits-to-gitflic.js 2>&1 | tee push-code-commits-to-gitflic.log.txt
node push-code-commits-to-gitflic.js > >(tee -a push-code-commits-to-gitflic.stdout.log.txt) 2> >(tee -a push-code-commits-to-gitflic.stderr.log.txt >&2)

About

A tool to migrate organization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published