Skip to content

Konard/gh-org-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-org-migrator (GitHub Organization Migrator)

A tool to migrate organization

JavaScript version (the only one recommended at the moment)

  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 js/download.js
  1. Upload data to target organization
node js/upload.js

Push repositories

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

Push repositories to GitFlic

node ./js/push-repositories-to-gitflic.js 2>&1 | tee push-repositories-to-gitflic.log.txt
node ./js/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 ./js/push-issues.js 2>&1 | tee push-issues.log.txt
node ./js/push-issues.js > >(tee -a push-issues.stdout.log.txt) 2> >(tee -a push-issues.stderr.log.txt >&2)

Push code commits

node ./js/push-code-commits.js 2>&1 | tee push-code-commits.log.txt
node ./js/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 ./js/push-code-commits-to-gitflic.js 2>&1 | tee push-code-commits-to-gitflic.log.txt
node ./js/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)

Python dependencies

pip3 install PyGithub python-dotenv

About

A tool to migrate organization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published