WIP: New design for flexible migrations #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "(deleted):lunny/implement_simple_migrate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
According @JonasFranz 's idea, I send this PR.
This PR add two interfaces I named
Downloader
andUploader
.Downloader
could get informations fromgithub
,gitlab
and other source code platform if you implement to some standard structs. i.e.Repository
,Issue
,Comment
,PullRequest
and etc.When the transfer is processing, we can save the retrieved data on memory or
.yml
files. And then upload them viaUploader
. Currently we will only implementGiteaUploaderV1
via gitea's API v1.WIP: add Downloader and Uploader interfacesto WIP: New design for flexible migrations@appleboy I think this should not be merged because it doesn't work on migrating comments and pull requests because we cannot assign issue index when creating issue via Gitea API. So think I will copy some the codes to send a PR on gitea's repository.
Since https://github.com/go-gitea/gitea/pull/6290 has merged. This PR is not necessary.