]> source.dussan.org Git - gitea.git/commit
Dump github/gitlab/gitea repository data to a local directory and restore to gitea...
authorLunny Xiao <xiaolunwen@gmail.com>
Sun, 27 Dec 2020 03:34:19 +0000 (11:34 +0800)
committerGitHub <noreply@github.com>
Sun, 27 Dec 2020 03:34:19 +0000 (11:34 +0800)
commitdd08853b10781177253b581fde482fe67ab14edf
treec0e065cfe86ae130371568f1e75c6560758ff31c
parent212fa340cfb499297bf76cb9dd5751895700a2af
Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244)

* Dump github/gitlab repository data to a local directory

* Fix lint

* Adjust directory structure

* Allow migration special units

* Allow migration ignore release assets

* Fix lint

* Add restore repository

* stage the changes

* Merge

* Fix lint

* Update the interface

* Add some restore methods

* Finish restore

* Add comments

* Fix restore

* Add a token flag

* Fix bug

* Fix test

* Fix test

* Fix bug

* Fix bug

* Fix lint

* Fix restore

* refactor downloader

* fmt

* Fix bug isEnd detection on getIssues

* Refactor maxPerPage

* Remove unused codes

* Remove unused codes

* Fix bug

* Fix restore

* Fix dump

* Uploader should not depend downloader

* use release attachment name but not id

* Fix restore bug

* Fix lint

* Fix restore bug

* Add a method of DownloadFunc for base.Release to make uploader not depend on downloader

* fix Release yml marshal

* Fix trace information

* Fix bug when dump & restore

* Save relative path on yml file

* Fix bug

* Use relative path

* Update docs

* Use git service string but not int

* Recognize clone addr to service type
29 files changed:
cmd/dump_repo.go [new file with mode: 0644]
cmd/restore_repo.go [new file with mode: 0644]
docs/content/doc/usage/command-line.en-us.md
main.go
models/admin.go
models/task.go
modules/migrations/base/comment.go
modules/migrations/base/downloader.go
modules/migrations/base/issue.go
modules/migrations/base/options.go
modules/migrations/base/pullrequest.go
modules/migrations/base/reaction.go
modules/migrations/base/release.go
modules/migrations/base/repo.go
modules/migrations/base/review.go
modules/migrations/base/uploader.go
modules/migrations/dump.go [new file with mode: 0644]
modules/migrations/error.go
modules/migrations/git.go
modules/migrations/gitea_downloader.go
modules/migrations/gitea_uploader.go
modules/migrations/gitea_uploader_test.go
modules/migrations/github.go
modules/migrations/gitlab.go
modules/migrations/migrate.go
modules/migrations/restore.go [new file with mode: 0644]
modules/uri/uri.go [new file with mode: 0644]
modules/uri/uri_test.go [new file with mode: 0644]
routers/api/v1/repo/migrate.go