Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konard/gh-org-migrator
A tool to migrate organization
https://github.com/konard/gh-org-migrator
Last synced: 11 days ago
JSON representation
A tool to migrate organization
- Host: GitHub
- URL: https://github.com/konard/gh-org-migrator
- Owner: Konard
- License: unlicense
- Created: 2024-07-17T19:19:51.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T16:44:10.000Z (about 2 months ago)
- Last Synced: 2024-10-10T13:36:00.733Z (28 days ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-org-migrator (GitHub Organization Migrator)
A tool to migrate organization# JavaScript version (the only one recommended at the moment)
1. Create .env file:
```bash
touch .env
nano .env
``````env
GITHUB_ACCESS_TOKEN=
GITFLIC_ACCESS_TOKEN=
SOURCE_ORGANIZATION=deep-foundation
TARGET_ORGANIZATION=link-foundation
```2. Download data from source organization
```bash
node js/download.js
```3. Upload data to target organization
```bash
node js/upload.js
```## Push repositories
```bash
node ./js/push-repositories.js 2>&1 | tee push-repositories.log.txt
``````bash
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
```bash
node ./js/push-repositories-to-gitflic.js 2>&1 | tee push-repositories-to-gitflic.log.txt
``````bash
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
```bash
node ./js/push-issues.js 2>&1 | tee push-issues.log.txt
``````bash
node ./js/push-issues.js > >(tee -a push-issues.stdout.log.txt) 2> >(tee -a push-issues.stderr.log.txt >&2)
```## Push code commits
```bash
node ./js/push-code-commits.js 2>&1 | tee push-code-commits.log.txt
``````bash
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
```bash
node ./js/push-code-commits-to-gitflic.js 2>&1 | tee push-code-commits-to-gitflic.log.txt
``````bash
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
```bash
pip3 install PyGithub python-dotenv
```