The first Flutter repo: Gitea #2 and #3 fast-forwarded, v1.1.0 released to R2 with the latest.json update feed (D8), branch protection on main, maintenance mode. What the move found, for the next repos: - No Flutter setup action fits host mode (subosito's bash steps can hit WSL): a pinned, checksummed SDK install into the runner tool cache. - docker run -v $PWD inside a Docker job mounts a host path, so the Linux floor is the ubuntu-22.04 label again. - Renovate proposes ubuntu v26 for Dockerfile bases and newer runs-on labels; a repo that pins an Ubuntu label on purpose needs a rule (candidate for the preset). - gitleaks reads a Sonar project key as an API key; apt in the runner's Docker network can lose a DNS lookup; the artifact service can time out on CreateArtifact (re-run failed jobs). The tracker row, the status row and the 15:23 Fri cron slot are live; the runbook notes pub.dev in the release-age rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.pyrun on the local clones inE:\and a read of each workflow's header (three batches: 8 repos, 7 more, then the last 6). 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 was decided for it, what to do with each workflow, the new cron slots, the secrets, the release path and the files that still point at GitHub.
How to run one migration
-
Read the repo's Decided section and do any step it gives you before the session (a few repos are not on Gitea yet).
-
Open a Claude Code session in the repo and give it:
Follow
E:\.github\docs\GITEA-MIGRATION.md§3 for this repo, withE:\.github\docs\migration\<repo>.mdfor the repo-specific steps. Work on branchchore/gitea-migration, one logical change per commit. Runpython3 E:\.github\tools\migration-inventory.py .first and report what differs from the guide. Stop at §3.8 with the hand-off report. -
Do the hand-off steps, then tick the repo in the runbook's tracker (§8).
For a repo without a guide, the same prompt works with only the runbook: §3.1 starts with the inventory tool.
Suggested order
- free-steam-games-list and RepoLens: their live sites read GitHub at runtime and have had no data since the suspension.
- free-games-itchio-list: the site still serves its last build, but nothing new is ingested or deployed.
- poli0981-dev with content, then the other web repos (deploys stopped with Workers Builds).
- The desktop apps, in any order. AppLedger and QuoteAtlas are pushed to Gitea first.
Status
| Repo (local folder) | Profile | State on 2026-11-23 | Guide |
|---|---|---|---|
ticktune |
web (Astro, Workers) | Pilot, done. Merged 2026-11-23 (Gitea #1, #2); v2.3.1 deployed from a signed tag | ticktune.md |
pipdock |
Tauri + Rust + React | not started | 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 | Done. Merged 2026-11-24 (Gitea #1, #2, #3); v1.5.0 deployed by the CI deploy job, tagged and announced from Gitea |
softharbor.md |
poli0981-dev |
web (Astro, Workers) + admin | Done. Merged 2026-11-24 (Gitea #1, #3); v2.4.0 deployed by the CI deploy job, admin publishing through Gitea |
poli0981-dev.md |
content (E:\content) |
content submodule of poli0981-dev |
Done with it (2026-11-24) | poli0981-dev.md |
tilepier |
web (SvelteKit, Workers) | not started | tilepier.md |
HashTool (E:\hash) |
Avalonia/.NET 10 + NativeAOT CLI, Velopack win/linux (osx dropped) | Done. Merged 2026-11-26 (Gitea #2); 1.3.1 released to R2 | hashtool.md |
youtube-generator (E:\youtube) |
web (Workers) + Tauri + Android | Done. Merged 2026-11-26 (Gitea #2, #3, #4); v1.7.0 released to R2, the site deployed by the CI deploy job |
youtube-generator.md |
youtube-auto-post |
Python bot on a schedule | not started | youtube-auto-post.md |
jsonPrism |
web + API (Workers) + Tauri + Android | Done. Merged 2026-11-27 (Gitea #2); v2.3.0 released to R2, the site deployed by the CI deploy job |
jsonprism.md |
MarkLens (E:\marklens) |
Flutter desktop (Windows, Linux) | Done. Merged 2026-11-27 (Gitea #2, #3); v1.1.0 released to R2 with the latest.json update feed, the first Flutter repo; maintenance mode |
marklens.md |
captureimg (E:\capture\captureimg) |
.NET/WPF, Velopack | not started | captureimg.md |
QuoteAtlas (E:\qoute) |
web + Tauri + Android | not on Gitea yet (origin is still GitHub) | quoteatlas.md |
AppLedger (E:\appledger) |
.NET/WPF, Velopack, never released | not on Gitea yet (origin is still GitHub) | appledger.md |
WardSweep (E:\wardsweep) |
Rust broker + .NET/WPF UI, Velopack | not started | wardsweep.md |
free-steam-games-list (E:\2) |
Python data pipeline + SvelteKit on Workers + Tauri + Android | Done. Data restored 2026-11-24 (49 GitHub-only data commits pushed, the Worker reads Gitea); migration merged as Gitea #1; v4.8.0 / apps 2.6.0 released to R2 | free-steam-games-list.md |
free-games-itchio-list (E:\game) |
Python data pipeline + React on Workers + Tauri + Android | Done. Catalog restored 2026-11-24 from the live site (+235 games); migration merged as Gitea #1; v4.7.0 released to R2 | free-games-itchio-list.md |
RepoLens (E:\repo) |
SvelteKit on Workers, data from the Gitea API | Done. Merged 2026-11-26 (Gitea #2); deployed by the CI deploy job, v1.6.0; repository private on Gitea |
repolens.md |
CommandForge (E:\cmd) |
.NET/WPF, Velopack | Done. Merged 2026-11-26 (Gitea #2, #3); v2.3.0 released to R2, the first Velopack app there | commandforge.md |
| any repo not listed | — | not inventoried | 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 runners. Take a free slot from here and add it to this table in the same change. Long data jobs start first, on the Docker-only runner (D15).
| Slot (UTC) | Days | Repo · workflow | Status |
|---|---|---|---|
| 13:03 | daily | free-steam-games-list · data-daily | live |
| 13:11 | daily | RepoLens · production smoke | live |
| 13:17 | daily | softharbor · quarantine | live |
| 13:19 | Fri | jsonPrism · security | live |
| 13:23 | daily | pipdock · security-scan | proposed |
| 13:27 | daily | free-games-itchio-list · update (ingest) | live |
| 13:31 | daily | renovate-config · renovate | live |
| 13:37 | Wed | youtube-generator · security (workflow lint + ops caller in one workflow; its 13:41 Tue slot was not needed) | live |
| 13:43 | Mon | HashTool · security (local checks, workflow lint and the ops caller in one workflow; its 15:19 Tue slot was not needed) | live |
| 13:47 | daily | pipdock · ci-integration (nightly) | proposed |
| 13:49 | daily | free-games-itchio-list · refresh | live |
| 13:53 | Thu | HashTool · qodana | live |
| 13:59 | daily | softharbor · vt-recheck | live |
| 14:07 | Sun | .github · weekly-digest | live |
| 14:11 | Fri | CommandForge · security (workflow lint + ops caller in one workflow) | live |
| 14:13 | Wed | poli0981-dev · security | live |
| 14:17 | Mon | captureimg · docs (external links) | proposed |
| 14:19 | Thu | pipdock · security (ops caller, D4) | proposed |
| 14:23 | Sat | OmniDeck · security | proposed |
| 14:27 | Mon | WardSweep · dependency audit | proposed |
| 14:29 | daily | tilepier · e2e | proposed |
| 14:31 | Thu | AppLedger · security | proposed |
| 14:33 | Tue | RepoLens · security | live |
| 14:37 | Mon | ticktune · audit | live |
| 14:41 | Fri | frameledger · security | proposed |
| 14:43 | Mon | softharbor · link-check | live |
| 14:47 | daily | youtube-auto-post · notify (YA1) | proposed |
| 14:53 | Tue | pipdock · ci-integration (weekly fixtures) | proposed |
| 14:59 | Sun | bookmarkmagic · security | proposed |
| 15:01 | Wed | free-games-itchio-list · security | live |
| 15:03 | Thu | WardSweep · security (local, WS1) | proposed |
| 15:07 | Thu | tilepier · security | proposed |
| 15:11 | Sat | captureimg · security | proposed |
| 15:13 | Mon | ticktune · qodana | live |
| 15:23 | Fri | MarkLens · security (workflow lint + ops caller in one workflow) | live |
| 15:29 | Wed | ticktune · security | live |
| 15:33 | Sun | QuoteAtlas · security | proposed |
| 15:37 | Tue | softharbor · security | live |
| 15:41 | Mon | bookmarkmagic · qodana | proposed |
| 15:47 | Thu | youtube-auto-post · security | proposed |
| 15:49 | Tue | free-steam-games-list · security | live |
| 15:53 | Mon | youtube-generator · rust | live |
Decisions that cover several repos
D1 is the maintainer's. D2–D16 were decided by the agent on the maintainer's instruction (2026-11-23). Any of them can still be reversed before a repo's session; the guides then change in the same commit. Each guide has a Decided section for its own questions.
| # | Question | Decided |
|---|---|---|
| D1 | SonarQube Cloud | Removed everywhere (maintainer): Sonar jobs and workflows, sonar-project.properties, dotnet-sonarscanner in .config/dotnet-tools.json, the Sonar text in CLAUDE.md and the docs, the SONAR_TOKEN secret. Qodana and Opengrep cover the analysis |
| D2 | Maintenance-mode triage (triage.yml / maintenance-triage.yml): outsiders cannot open issues or PRs on Gitea, and GitLab mirror issues are not seen by Gitea Actions |
Removed with its script. The policy text stays in CONTRIBUTING; the maintainer closes out-of-scope items by hand on GitLab (the pilot did this) |
| D3 | Web deploys: Cloudflare Workers Builds pulled from GitHub and stopped | wrangler deploy from Gitea CI (a deploy job on main, or the pilot's tag-only deploy.yml where a repo already deploys from tags), with CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID. Workers Builds on the GitLab mirror is not used: it would deploy a second time on every mirror push. The maintainer disconnects each project's GitHub integration in the dashboard |
| D4 | Repos whose workflows are project-local on purpose (pipdock, AppLedger, WardSweep) | Call the ops repo for security, and for notifications where the repo has none of its own, pinned by SHA; the rest stays local. Exception: WardSweep (WS1 in its guide), whose distribution-trust document requires every step to be readable in the repo |
| D5 | Bot pull requests (softharbor quarantine / vt-recheck / link-check, poli0981-dev content-bump): a PR opened with the job token starts no workflow | Dispatch CI on the bot branch (POST …/actions/workflows/<file>/dispatches with the job token and actions: write: Gitea starts a dispatched run whoever asks; read from the source, VERIFY on 28.4.0) |
| D6 | Required checks and rulesets were GitHub's | Gitea branch protection on main: the CI checks the ruleset required, no force push, no deletion. A maintainer step in every hand-off; .github/rulesets/* goes |
| D7 | GitHub-only extras: build-provenance attestations (no OIDC), OpenSSF Scorecard, dependency review, dependency submission / SBOM export, the GitHub Wiki | Dropped. osv-scanner, cargo-deny and NuGetAudit cover vulnerabilities; a repo that needs a licence gate runs it locally (nuget-license, as HashTool). An SBOM, where a repo shipped one, is generated in the build (CycloneDX) and uploaded next to the release on R2. Release notes stop telling users to run gh attestation verify |
| D8 | In-app update checks that asked api.github.com/…/releases/latest (MarkLens, QuoteAtlas, the free-steam-games-list Android app). Velopack apps are covered by runbook §5.1 |
A latest.json (version + download URLs) at releases.poli0981.dev/<app>/…/latest.json, uploaded last by publish-r2.yml (a *.json name, so the edge does not cache it). Not the Gitea API: apps stay off the forge. The app's privacy text and CSP name the new host |
| D9 | macOS builds: there is no macOS runner (HashTool's osx/osx-x64; the DMGs of youtube-generator, jsonPrism, QuoteAtlas, the two catalog apps) |
Dropped from CI; README and the release docs say so. Existing macOS installs keep the GitHub feed they have, which cannot be redirected |
| D10 | Android APKs: Gitea's docker.gitea.com/runner-images most likely ship no Android SDK (VERIFY) |
Installed in the job on ubuntu-latest: pinned command-line tools, sdkmanager with the repo's platform and NDK versions, cached. Never installed system-wide on the PC |
| D11 | GitHub Pages notice/redirect sites and Discussions (youtube-generator, jsonPrism, captureimg, the two catalog repos) | Deleted with the files that only serve them. The poli0981.github.io/… sites died with the account; Discord gets the announcements |
| D12 | Code that writes to a repo at runtime through a GitHub App or token (poli0981-dev admin, free-steam-games-list and free-games-itchio-list Workers) | The Gitea API with a token of the bot user poli0981-bot, a collaborator with write access on exactly the repos it writes (poli0981-dev, content, free-steam-games-list, free-games-itchio-list), token scope write:repository, stored as a Worker secret. Several files in one commit: POST /repos/{owner}/{repo}/contents with each file's current sha, which is the optimistic lock that replaces createCommitOnBranch's expectedHeadOid (VERIFY that a stale sha is refused with 409/422; the Workers' retry loops depend on it). A push by this user is a real user's push, so it starts workflows (ingest jobs) as the GitHub App's did. Commits are unsigned unless Gitea's server-side signing is set up; nothing requires it |
| D13 | Code that reads repo data at runtime (raw files, commits, releases, activity) | Gitea without a token: raw files at https://git.poli0981.dev/poli0981/<repo>/raw/branch/main/<path> (or GET /repos/{owner}/{repo}/raw/{path}?ref=main), and the REST API for the rest. The repos are public; the Workers keep their caches, so each new file version is fetched once per data centre |
| D14 | Public bug-report endpoints that opened GitHub issues (poli0981-dev, RepoLens) | Issues on the GitLab mirror through POST /api/v4/projects/:id/issues. The token is a project access token if the GitLab.com plan allows one, else a personal access token of a GitLab bot account with the Reporter role (scope api). Either expires within a year: note the date in the hand-off. When the call fails, the endpoint tells the reader to e-mail code@ instead |
| D15 | Runner time: the two catalog pipelines need about four runner-hours a day, more than one job slot holds inside 13:00–16:00 next to the other repos' schedules | A second runner registration on the PC with Docker labels only (ubuntu-latest, ubuntu-24.04, ubuntu-22.04), capacity 1. Host-mode (windows-latest) jobs stay one at a time on the first runner; a long data job no longer blocks a Windows build. The data pipelines also run once a day with smaller time budgets (their guides). If the PC is off, the day's runs wait and catch up when it comes back (runbook §7 item 4) |
| D16 | Sites that bundle their data at build time (free-games-itchio-list): a data commit pushed with the job token starts no workflow, so no deploy | The data workflow dispatches deploy.yml after a successful commit (job token, actions: write). deploy.yml keeps push for code changes |
Maintainer steps, once for all repos
- Add your GPG public key to the Gitea account, so
https://git.poli0981.dev/poli0981.gpgserves it (the pilot's tag check, OmniDeck's OD3). - Create the user
poli0981-boton Gitea (registration is off: Site Administration), add it as a Write collaborator on the four repos of D12, and create its token (write:repository). The token goes into each Worker as a secret during that repo's hand-off. - Register the second runner on the PC with Docker labels only (D15).
- The GitLab issue token of D14, with its expiry date written down.
- In the Cloudflare dashboard, disconnect Workers Builds' GitHub integration of every project the migrated repos deploy (D3).
- The announcement (runbook §7 item 5): one post on poli0981.dev and the Discord announcement.
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 run list (is a workflow running or waiting?) |
GET /repos/{owner}/{repo}/actions/runs?status=… (VERIFY the route and its filters on 28.4.0) |
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; needs the GPG key on the account) |
gh release create/edit/upload |
https://gitea.com/actions/gitea-release-action (notes + links, no binaries: runbook §1), or POST /repos/{owner}/{repo}/releases |
gh release download (old assets) |
nothing to download from: put what a workflow still needs on R2 under a versioned name |
GraphQL createCommitOnBranch |
POST /repos/{owner}/{repo}/contents {branch, message, files:[{operation, path, content (base64), sha}]} (D12) |
raw.githubusercontent.com/<owner>/<repo>/main/<path> |
https://git.poli0981.dev/<owner>/<repo>/raw/branch/main/<path> (D13) |
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, a PR opened by CI runs no checks (D5), and a data commit deploys nothing (D16).
Shared replacements and rules
- CodeQL (local, or a caller of
reusable-codeql.yml@main, which the ops repo no longer has) → a caller of the opssecurity.yml(gitleaks, Opengrep, osv-scanner, cargo-deny, NuGetAudit). JetBrains/qodana-action→ a caller of the opsreusable-qodana.yml(Qodana CLI, native mode, report as an artifact). The SARIF upload to GitHub code scanning goes. A linter without a native mode (qodana-rust), or one that needs a plugin native mode cannot install, runs withruns-on: windows-latestandwithin-docker: true(Docker Desktop on the PC, VERIFY); if that fails, the project leaves Qodana.actions/upload-artifact/download-artifact→christopherhx/gitea-upload-artifact/gitea-download-artifactat the SHAs the ops repo pins.- Discord notifications → callers of the ops
notify-*/announce-releaseworkflows, withops_refset to the same SHA asuses:and the secrets passed by name. Delete vendored copies ofdiscord_notify.py(they callapi.github.com). - Unpinned actions (
@v7) → pin the 40-char SHA with a version comment (runbook rule 6). - A repo's own actionlint / zizmor jobs: both only find
.github/workflowsby themselves, so pass the.gitea/workflowsfiles explicitly (as the opsops-lint.ymldoes; VERIFY zizmor's discovery). Runzizmorcore/zizmor-actionwithonline-audits: false(its online audits query GitHub with the job token) andadvanced-security: false(no code-scanning upload). concurrencywithqueue: max(the catalog pipelines): GitHub addedqueuein 2026. VERIFY what Gitea 28.4.0 does with it before a pipeline relies on runs waiting in turn; a scheduled pipeline is one workflow for that reason (its guide).- Host mode is the maintainer's PC (
windows-latest, runbook §1). A job that starts an app points the app's data folder at the job's temp dir (HashTool:HASHTOOL_DATA_DIR), never runs an installer (Setup.exe,.msi,.pkg), never runs tests that need elevation or change the machine (AppLedger'sCategory=Admin, WardSweep's ignored machine test), and installs SDKs into the runner tool cache, never system-wide.