You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonas Franz
3abbd59b36
|
7 years ago | |
---|---|---|
cmd | 7 years ago | |
migrations | 7 years ago | |
.drone.yml | 7 years ago | |
.gitignore | 7 years ago | |
Gopkg.lock | 7 years ago | |
Gopkg.toml | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
main.go | 7 years ago |
README.md
gitea-github-migrator
A tool to migrate GitHub Repositories to Gitea including all issues, labels, milestones and comments.
Features
Migrates:
- Repositories
- Issues
- Labels
- Milestones
- Comments
- Users
- Pull Requests
- Statuses
Installation
go get git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
cd $GOPATH/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
dep ensure
go install
Usage
Migrate one repository:
gitea-github-migrator migrate \
--gh-repo owner/reponame \
--gh-token GITHUB_TOKEN \
--url http://gitea-url.tdl \
--token GITEA_TOKEN \
--owner 1
gh-token
is only required if you have more then 50 issues / repositories.
Migrate all repositories:
gitea-github-migrator migrate-all \
--gh-user username \
--gh-token GITHUB_TOKEN \
--url http://gitea-url.tdl \
--token GITEA_TOKEN \
--owner 1
Migrate all repository without issues etc. (classic):
gitea-github-migrator migrate-all \
--gh-user username \
--gh-token GITHUB_TOKEN \
--url http://gitea-url.tdl \
--token GITEA_TOKEN \
--owner 1
--only-repo
Problems
- This migrator does not work with Gitea instances utilizing a SQLite database.
- Comments / Issues will be added by token's user (information about date and author will be added)
- Current Date is utilized for creation date (information about date is added in a comment)