Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robandpdx/gl-exporter-demo
https://github.com/robandpdx/gl-exporter-demo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robandpdx/gl-exporter-demo
- Owner: robandpdx
- License: mit
- Created: 2023-10-25T18:15:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T16:47:20.000Z (about 1 year ago)
- Last Synced: 2024-11-04T11:11:55.316Z (2 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gl-exporter demo
## Prerequisites
Install [rbenv](https://github.com/rbenv/rbenv).
Install [nvm](https://github.com/nvm-sh/nvm).
Install [gh-gitlab-stats](https://github.com/mona-actions/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
```## Gather stats
Source `setenv.sh` file.```
gh gitlab-stats --token $GITLAB_API_PRIVATE_TOKEN --output-file gl-stats.csv --hostname $GITLAB_HOST
```## Export from GitLab
Source `setenv.sh` file.```
./exe/gl_exporter --namespace mindfulrob --project superbigmonorepo -o migration_archive.tar.gz
```## Import into GitHub
Source `setenv.sh` file.```
ghec-importer import -a $GITHUB_TOKEN -t $ORG migration_archive.tar.gz
```