Files
.github/docs/migration
poli0981andClaude Opus 5.5 79b57af093 docs(migration): a guide per inventoried repo
docs/migration/ holds the index (status, cron-slot registry, the
maintainer decisions D1-D7 shared by several repos, gh CLI to Gitea
API), the rest of the pilot for ticktune, and a guide each for
pipdock, frameledger, OmniDeck, bookmarkmagic, softharbor,
poli0981-dev and tilepier: what to do with every workflow, new cron
slots, secrets, release path, files and code that still point at
GitHub, and the questions to answer first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k
2026-11-23 17:50:35 +07:00
..

Per-repo migration guides

Audience: the maintainer and the agent session that migrates one repository (runbook §0). Written: 2026-11-23, from tools/migration-inventory.py run on the local clones in E:\ and a read of each workflow's header. Each guide names the commit it was written against. If the repo has moved on, re-run the inventory and trust the repo.

The runbook (../GITEA-MIGRATION.md) is the procedure. A guide here only adds what is specific to one repository: what to do with each workflow, the new cron slots, the secrets, the release path, the files that still point at GitHub, and the questions the maintainer has to answer first.

How to run one migration

  1. Answer the repo's Decisions section (or the shared ones below).

  2. Open a Claude Code session in the repo and give it:

    Follow E:\.github\docs\GITEA-MIGRATION.md §3 for this repo, with E:\.github\docs\migration\<repo>.md for the repo-specific steps. Work on branch chore/gitea-migration, one logical change per commit. Run python3 E:\.github\tools\migration-inventory.py . first and report what differs from the guide. Stop at §3.8 with the hand-off report.

  3. Do the hand-off steps, then tick the repo in the runbook's tracker (§8).

For the repos without a guide yet, the same prompt works with only the runbook: §3.1 now starts with the inventory tool.

Status

Repo Profile State on 2026-11-23 Guide
ticktune web (Astro, Workers) Pilot. chore/gitea-migration has 20 commits, not merged ticktune.md
pipdock Tauri + Rust + React not started; workflows project-local by design pipdock.md
frameledger .NET/WPF + C++, Velopack not started frameledger.md
OmniDeck .NET/WPF, Velopack not started omnideck.md
bookmarkmagic Chrome/Edge/Firefox extension (WXT) not started bookmarkmagic.md
softharbor web (Astro, Workers) + data bots not started softharbor.md
poli0981-dev web (Astro, Workers) + admin not started poli0981-dev.md
tilepier web (SvelteKit, Workers) not started tilepier.md
all other repos in E:\ — not inventoried (no access from the session that wrote this) run the inventory

Cron slots (UTC) — the registry

Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3.2 item 9), so nothing piles up on the one runner. Take a free slot from here and add it to this table in the same change.

Slot (UTC) Days Repo · workflow Status
13:17 daily softharbor · quarantine proposed
13:23 daily pipdock · security-scan proposed
13:31 daily renovate-config · renovate live
13:47 daily pipdock · ci-integration (nightly) proposed
13:59 daily softharbor · vt-recheck proposed
14:07 Sun .github · weekly-digest live
14:13 Wed poli0981-dev · security proposed
14:19 Thu pipdock · security (if it calls the ops repo, D4) proposed
14:23 Sat OmniDeck · security proposed
14:29 daily tilepier · e2e proposed
14:37 Mon ticktune · audit on the pilot branch
14:41 Fri frameledger · security proposed
14:43 Mon softharbor · link-check proposed
14:53 Tue pipdock · ci-integration (weekly fixtures) proposed
14:59 Sun bookmarkmagic · security proposed
15:07 Thu tilepier · security proposed
15:13 Mon ticktune · qodana on the pilot branch
15:29 Wed ticktune · security on the pilot branch
15:37 Tue softharbor · security proposed
15:41 Mon bookmarkmagic · qodana proposed

Decisions that cover several repos (maintainer)

The agent flags these and does not choose. The default is what the guides assume.

# Question Default in the guides
D1 SonarQube Cloud: you said Sonar is not usable any more. Remove every Sonar job, sonar-project.properties and the SONAR_TOKEN secret? (The pilot still has its sonar job.) Remove. Qodana + Opengrep cover the analysis
D2 Maintenance-mode triage (triage.yml, pull_request_target + gh/github-script): outsiders cannot open issues or PRs on Gitea, and GitLab mirror issues are not seen by Gitea Actions Remove the workflow and its script; keep the policy text in CONTRIBUTING (the pilot did this)
D3 Web deploys: Cloudflare Workers Builds pulled from GitHub and stops now. Deploy with wrangler deploy from Gitea CI (the pilot's deploy.yml, or reusable-web-react.yml with deploy-workers: true), or connect Workers Builds to the GitLab mirror (runbook §7 item 7) Gitea CI + wrangler (needs CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID)
D4 Repos whose workflows are project-local on purpose (pipdock moved to the poli0981org org on GitHub so no other account could change its CI). On Gitea it lives under poli0981, the same owner as the ops repo, and callers pin a commit SHA, so no one can change what runs Call the ops repo (security, notify), pinned by SHA; keep the rest local
D5 Bot pull requests and issues (softharbor quarantine / vt-recheck / link-check, poli0981-dev content-bump): a PR opened with GITEA_TOKEN starts no workflow on Gitea either, so its required checks never run. Use a PAT of renovate-bot (or a second bot) as a repo secret, or dispatch CI on the bot branch (POST …/actions/workflows/<file>/dispatches: Gitea starts a dispatched run whoever asks, so the job token works, with actions: write; read from the Gitea source, VERIFY on 28.4.0) Dispatch CI on the bot branch, as the workflows already do with gh workflow run
D6 Required checks / rulesets were GitHub rulesets. Recreate them as Gitea branch protection on main with status-check patterns Maintainer step in each hand-off
D7 GitHub-only extras with no Gitea equivalent: build-provenance attestations (no OIDC), OpenSSF Scorecard, dependency review (licence gate), dependency-graph/sbom, GitHub Wiki Drop attestations, Scorecard and dependency review (osv-scanner + cargo-deny/NuGetAudit cover vulnerabilities; licences: see each guide). SBOM: generate it in the build (e.g. CycloneDX) and upload it next to the release on R2

gh CLI → Gitea API

gh only talks to github.com. On Gitea, call the REST API with the job token (${{ github.token }}, Authorization: token …) at ${{ github.api_url }} (= https://git.poli0981.dev/api/v1). The routes below were checked against the Gitea source on 2026-11-23.

gh Gitea API
gh issue create POST /repos/{owner}/{repo}/issues {title, body, labels:[<label ids>]}
gh issue edit --body-file / gh issue close PATCH /repos/{owner}/{repo}/issues/{n} {body} / {state:"closed"}
gh issue comment / gh pr comment POST /repos/{owner}/{repo}/issues/{n}/comments {body}
find an open issue by title GET /repos/{owner}/{repo}/issues?state=open&type=issues&q=<words>
gh pr create POST /repos/{owner}/{repo}/pulls {base, head, title, body}
gh pr merge --auto --squash POST /repos/{owner}/{repo}/pulls/{n}/merge {do:"squash", merge_when_checks_succeed:true}
gh workflow run <file> --ref <b> POST /repos/{owner}/{repo}/actions/workflows/<file>/dispatches {ref} (job token with actions: write)
gh api …/pulls/{n}/files GET /repos/{owner}/{repo}/pulls/{n}/files
gh api …/git/tags/{sha} (verification) GET /repos/{owner}/{repo}/git/tags/{sha} (has verification; VERIFY that Gitea knows the signing key)
gh release create/edit/upload https://gitea.com/actions/gitea-release-action (notes + links, no binaries: runbook §1), or POST /repos/{owner}/{repo}/releases

Events caused by the job token start no workflow (Gitea skips the Actions user, as GitHub skips GITHUB_TOKEN): a release published by CI does not fire release: published, and a PR opened by CI runs no checks (D5).

Shared replacements

  • CodeQL (local, or a caller of reusable-codeql.yml@main, which the ops repo no longer has) → a caller of the ops security.yml (gitleaks, Opengrep, osv-scanner, cargo-deny, NuGetAudit).
  • JetBrains/qodana-action → a caller of the ops reusable-qodana.yml (Qodana CLI, native mode, report as an artifact). The SARIF upload to GitHub code scanning goes away.
  • actions/upload-artifact / download-artifact → christopherhx/gitea-upload-artifact / gitea-download-artifact at the SHAs the ops repo pins.
  • Discord notifications → callers of the ops notify-* / announce-release workflows, with ops_ref set to the same SHA as uses:. Delete vendored copies of discord_notify.py (they call api.github.com).
  • Unpinned actions (@v7) → pin the 40-char SHA with a version comment (runbook rule 6).