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,6 +4,11 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### feat
|
||||
|
||||
- **migrator:** working Codeberg → Gitea migration via `codeberg-to-gitea migrate`. Mirrors git (code, history, tags, LFS) and replays 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 with `#NNN`/URL cross-reference rewriting to the target's number space; deleted-branch PR heads recreated as `refs/heads/_pr/<n>`. Tokens via `CODEBERG_TOKEN`/`GITEA_TOKEN`; `--repo owner/name` (or bare name). `--delete-existing` for clean re-runs.
|
||||
|
||||
### chore
|
||||
|
||||
- **project:** bootstrap scaffold — Python package (`src/` layout, hatchling, ruff, pytest), GPL-3.0-or-later license, Gitea Actions CI, CITATION.cff, README, ADRs, and DOX-structured AGENTS.md.
|
||||
- **deps:** add `httpx`, `typer`; add `codeberg-to-gitea` console script.
|
||||
Reference in new issue
Block a user