Migrate repositories, wikis, issues and milestones from GitLab to GitHub.
- Set environment variables in
.env
GITLAB_URL
- The URL of your local GitLab instance e.g.http://GitLab.local
GITLAB_GIT_URL
- The Git URL of your local GitLab instance e.g.[email protected]
GITLAB_TOKEN
- Your GitLab API tokenGITHUB_ORG
- Your GitHub organization name e.g.wollzelle
GITHUB_TEAM_ID
- The id of the GitHub team that will be granted access to this repositoryGITHUB_USERNAME
- Your GitHub username e.g.meleyal
GITHUB_TOKEN
- Your GitHub API token
-
Install dependencies with
npm install
andnpm install -g coffee-script
-
List available tasks with
cake
cake -i 6 -l websites/my-website -h my-website migrate:repo
cake -i 6 -l websites/my-website -h my-website migrate:wiki
cake -i 6 -l websites/my-website -h my-website migrate:issues
cake -i 6 -l websites/my-website -h my-website migrate:milestones
-
gitlab_id
can be found by inspecting thebody
tag of the GitLab project page (e.g.data-project-id="84"
), or via the GitLab API. -
GITHUB_TEAM_ID
can be found viaapi.github.com/teams
(requires org owner rights). -
migrate:wiki
requires that the GitHub wiki must be created first (it's enough to create a single blank page).