Merge branch 'master' of ssh://git.jonasfranz.software:10022/JonasFranzDEV/gitea-github-migrator into web-ui

web-ui
Jonas Franz 6 years ago
commit ab53d38916
Signed by untrusted user: JonasFranzDEV
GPG Key ID: 506AEEBE80BEDECD
  1. 9
      .drone.yml
  2. 17
      README.md

@ -49,13 +49,13 @@ pipeline:
- go vet ./...
- go test -cover ./...
static:
image: karalabe/xgo-latest:latest
image: golang:1.10
pull: true
environment:
GOPATH: /go
commands:
- go get -u github.com/karalabe/xgo
- xgo -out gitea-github-migrator -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" --targets=windows/*,darwin/*,linux/* .
- go get -u github.com/mitchellh/gox
- gox -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -output "releases/gitea-github-migrator_{{.OS}}_{{.Arch}}"
when:
event: [ tag ]
clean:
@ -72,5 +72,8 @@ pipeline:
secrets: [ gitea_token ]
files:
- releases/*
checksum:
- sha256
- md5
when:
event: [ tag ]

@ -1,10 +1,12 @@
# gitea-github-migrator
[![Build Status](https://drone.jonasfranz.software/api/badges/JonasFranzDEV/gitea-github-migrator/status.svg)](https://drone.jonasfranz.software/JonasFranzDEV/gitea-github-migrator)
A tool to migrate [GitHub](https://github.com) Repositories to [Gitea](https://gitea.io) including all issues, labels, milestones
and comments.
## Features
Migrates:
- [x] Repositories
@ -28,6 +30,7 @@ go install
## Usage
Migrate one repository:
```bash
gitea-github-migrator migrate \
--gh-repo owner/reponame \
@ -36,9 +39,11 @@ gitea-github-migrator migrate \
--token GITEA_TOKEN \
--owner 1
```
`gh-token` is only required if you have more then 50 issues / repositories.
`gh-token` is only required if you have more than 50 issues / repositories.
Migrate all repositories:
```bash
gitea-github-migrator migrate-all \
--gh-user username \
@ -48,7 +53,8 @@ gitea-github-migrator migrate-all \
--owner 1
```
Migrate all repository without issues etc. (classic):
Migrate all repositories without issues etc. (classic):
```bash
gitea-github-migrator migrate-all \
--gh-user username \
@ -60,6 +66,7 @@ gitea-github-migrator migrate-all \
```
## 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)
- This migration tool does not work with Gitea instances using a SQLite database.
- Comments / Issues will be added in the name of the user to whom belongs the token (information about the original date and author will be added)
- The current date is used for creation date (information about the actual date is added in a comment)

Loading…
Cancel
Save