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

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

@ -1,10 +1,12 @@
# gitea-github-migrator # 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) [![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 A tool to migrate [GitHub](https://github.com) Repositories to [Gitea](https://gitea.io) including all issues, labels, milestones
and comments. and comments.
## Features ## Features
Migrates: Migrates:
- [x] Repositories - [x] Repositories
@ -28,6 +30,7 @@ go install
## Usage ## Usage
Migrate one repository: Migrate one repository:
```bash ```bash
gitea-github-migrator migrate \ gitea-github-migrator migrate \
--gh-repo owner/reponame \ --gh-repo owner/reponame \
@ -36,9 +39,11 @@ gitea-github-migrator migrate \
--token GITEA_TOKEN \ --token GITEA_TOKEN \
--owner 1 --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: Migrate all repositories:
```bash ```bash
gitea-github-migrator migrate-all \ gitea-github-migrator migrate-all \
--gh-user username \ --gh-user username \
@ -48,7 +53,8 @@ gitea-github-migrator migrate-all \
--owner 1 --owner 1
``` ```
Migrate all repository without issues etc. (classic): Migrate all repositories without issues etc. (classic):
```bash ```bash
gitea-github-migrator migrate-all \ gitea-github-migrator migrate-all \
--gh-user username \ --gh-user username \
@ -60,6 +66,7 @@ gitea-github-migrator migrate-all \
``` ```
## Problems ## 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) - This migration tool does not work with Gitea instances using a SQLite database.
* Current Date is utilized for creation date (information about date is added in a comment) - 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