https://github.com/konard/gh-org-migrator
A tool to migrate organization
https://github.com/konard/gh-org-migrator
Last synced: about 2 months 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-17T18:21:55.000Z (3 months ago)
- Last Synced: 2025-02-17T19:26:30.881Z (3 months ago)
- Language: JavaScript
- Size: 96.7 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)
0. Install dependencies
```bash
yarn
```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 pull.js
```3. Upload data to target organization
```bash
node push.js
```## Push repositories
```bash
node push-repositories.js 2>&1 | tee push-repositories.log.txt
``````bash
node 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 push-repositories-to-gitflic.js 2>&1 | tee push-repositories-to-gitflic.log.txt
``````bash
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
```bash
node push-issues.js 2>&1 | tee push-issues.log.txt
``````bash
node push-issues.js > >(tee -a push-issues.stdout.log.txt) 2> >(tee -a push-issues.stderr.log.txt >&2)
```## Push code commits
```bash
node push-code-commits.js 2>&1 | tee push-code-commits.log.txt
``````bash
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
```bash
node push-code-commits-to-gitflic.js 2>&1 | tee push-code-commits-to-gitflic.log.txt
``````bash
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)
```