feat: implement Codeberg → Gitea repo migrator
Replay git (mirror + LFS), labels, milestones, issues & PRs (with comments), and releases (with assets) entity-by-entity over the shared Forgejo/Gitea REST API. Two-pass issue/PR creation rewrites #NNN and URL cross-references to the target number space; deleted-branch PR heads are recreated as refs/heads/_pr/<n>. CLI: codeberg-to-gitea migrate owner/name (CODEBERG_TOKEN/GITEA_TOKEN) Verified end-to-end on AlexKucera/helm: 283 issues, 1 PR, 19 labels, 219 comments, git history, with cross-refs correctly rewritten.
This commit is contained in:
1 parent
601cf4c41e
commit
ab43b0311e
14 files changed
+1240
-23
No files matched your search
+4
-1
@@ -12,11 +12,14 @@ license = "GPL-3.0-or-later"
|
||||
license-files = ["LICENSE"]
|
||||
authors = [{ name = "Alexander Kucera", email = "a.kucera@babylondreams.de" }]
|
||||
keywords = ["migration", "codeberg", "gitea", "forgejo", "repository-migration"]
|
||||
dependencies = []
|
||||
dependencies = ["httpx>=0.27", "typer>=0.12"]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest", "ruff"]
|
||||
|
||||
[project.scripts]
|
||||
codeberg-to-gitea = "codeberg_to_gitea_migrator.cli:app"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/codeberg_to_gitea_migrator"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user