sebj54 / gogs-to-github

A tool to help you migrate Gogs repositories to Github
2 stars 3 forks source link
github github-api gogs gogs-api migration migration-tool

gogs-to-github

A tool to help you migrate Gogs repositories to Github.

Features

⚠ This tool does not migrate pull requests because Gogs does not provide an API for pull requests (see https://github.com/gogs/gogs/issues/2253).

Installation and usage

git clone https://github.com/sebj54/gogs-to-github
cd gogs-to-github
npm ci
GOGS_ACCESS_TOKEN=____YOUR_GOGS_TOKEN____
GOGS_URL=https://____YOUR_GOGS_URL____
GITHUB_ACCESS_TOKEN=____YOUR_GITHUB_TOKEN____
npm start

Configuration

To be able to run migration, you will need to set 3 environment variables:

You can define these variables directly from your CLI or use a .env root file. You can copy the structure of the env.dist file and fill the variables.