chore(ci): use --mirror so GitHub branch deletes propagate #192

Merged
chihlasm merged 3 commits from chore/mirror-prune-deletes into main 2026-05-29 18:21:30 +00:00

3 Commits

Author SHA1 Message Date
d5d4405ac2 fix(ci): mirror — push refs/heads + refs/tags, not all refs
All checks were successful
Mirror to GitHub / mirror (push) Successful in 6s
CI / frontend (pull_request) Successful in 6m59s
CI / backend (pull_request) Successful in 11m37s
CI / e2e (pull_request) Successful in 9m56s
`git push --mirror` pushes everything under refs/* including refs/pull/*,
which GitHub rejects with "deny updating a hidden ref" — GitHub manages
its own refs/pull/N/head namespace and won't let outside pushers touch it.

Switching to `--all --prune --force` + `--tags --prune --force` scopes the
push to refs/heads/* and refs/tags/* only (same as the original lines)
while keeping --prune so branch/tag deletions still propagate.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 13:34:22 -04:00
16a07e1682 chore: gitignore .mcp.json
Some checks failed
Mirror to GitHub / mirror (push) Failing after 6s
CI / frontend (pull_request) Successful in 7m5s
CI / backend (pull_request) Successful in 12m56s
CI / e2e (pull_request) Successful in 10m3s
`.mcp.json` is per-machine MCP server config (e.g. the GitHub MCP block
added during today's session). It references local env vars for auth
rather than embedding secrets, but the file itself is workstation-specific
— what servers a contributor connects depends on which MCPs they've set
up locally.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 13:29:19 -04:00
84dc9b07bf chore(ci): mirror to GitHub with --mirror so deletes propagate
Some checks failed
Mirror to GitHub / mirror (push) Failing after 5s
CI / frontend (pull_request) Successful in 6m55s
CI / e2e (pull_request) Successful in 10m28s
CI / backend (pull_request) Successful in 12m57s
Today's cleanup surfaced 14 branches that existed on GitHub but had
been deleted on Gitea — the previous `--all --force` + `--tags --force`
pair pushes refs but never deletes missing ones, so the mirror drifted
over time.

Switching to `git push --mirror` (equivalent to --all --tags --prune
--force) makes the GitHub side a true reflection of Gitea: branch and
tag deletes propagate automatically.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 13:24:31 -04:00