[x]
):As the title says, when migrating a repository over from Github, it doesn't take any of the information, like title and release notes. It also leaves the attachments. I know that github allows other file types as attachments (I don't know all the types but I use .sql files a fair amount), would this mess it up?
Releases on GitHub isn't tied to the git-repo itself, migrating them would require talking to GitHubs API, which we purposefully don't do. Adding support to do so would lead to people asking about (or sending PRs for) supporting other providers, and there are so many different providers that it would end up as code-bloat. And the fact that there's no way to test this migrations without calling out to all those providers, meaning we'd introduce _more_ untested code.
If you want proof of my claims, have a look at GitLabs migration-code. While nicely done, it is still in my opinion somewhat of a beast 馃槄 (Side-note: I did most of the Gitea-migrator for GitLab)
@bkcsoft any plans on being able to add/edit releases notes and stuff?
One should be able to do that already, Releases are not hard-bound to a Tag AFAIK
Releases on GitHub isn't tied to the git-repo itself, migrating them would require talking to GitHubs API, which we purposefully don't do.
It would be super cool if this were to change in the future 鉂わ笍
Adding support to do so would lead to people asking about (or sending PRs for) supporting other providers, and there are so many different providers that it would end up as code-bloat.
Just because you do A, doesn't mean you have to do B; there is no reason to treat mult-million-user-base platforms the same as obscure niche-products. And GitHub is the de-facto standard, I mean you are hosting your own code on GitHub instead of an instance of your own code 馃槈
I think it would really help adoption to make inter-operability with / conversion from GitHub as easy as possible.
@h-2
It would be super cool if this were to change in the future 鉂わ笍
Most likely will not 馃槈
I mean you are hosting your own code on GitHub instead of an instance of your own code
We're only doing that because Gitea is currently missing a few key features (like proper CI integration and code reviews). End goal is self-hosting.
I think it would really help adoption to make inter-operability with / conversion from GitHub as easy as possible.
While I agree with that, I don't agree that this should be part of Gitea itself.
Reasons: (almost exact copy of https://github.com/go-gitea/gitea/issues/1876#issuecomment-308588206)
I completely agree with @bkcsoft that there should be created tool to do migrations from different platforms to gitea
@lafriks If written properly, it would be cross direction, so Gitea <=> GitHub <=> GitLab <=> Gitea, etc...
Maybe there could be an API/plugin system to allow for easy migration of every (supported) feature. Maybe only documenting how to create a custom script is enough. Then other people could do it as separate projects. This solves the problem of code bloat.
I use Gitolite/Redmine at work and would love to migrate then both to Gitea, but having to understand Gitea database, then Redmine database and then creating/testing a script to migrate everything is a bit too much.
Given tags come across just fine I'm guessing the bane of this issue is people losing release notes which they stored in GitHub releases as opposed to a ChangeLog. To generate a changelog file from git history take a look at https://www.npmjs.com/package/conventional-changelog-cli
Maybe can we add support for that to the gitea GitHub migrator
Closing this in favour of external tool.