mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 04:17:20 +01:00
This repo shipped its own scripts/ci/auto-merge-sweep.sh: 297 lines against the canonical's 446, differing on 149. Every fix that landed in bitbaum/fleet since the copy was taken reached here never — which is the whole reason SHARED.md tracks this duplication as a ratchet rather than as advice. Auto-merge did not appear broken, and that is the point: a sweep merges what it can and exits 0, so a copy missing a third of the canonical looks exactly like a working one until the missing third is what you needed. The concrete gain is the DEPLOY RECONCILER. The old copy listed deploy.yml in REARM_WORKFLOWS, which dispatches it once and cannot tell whether the deploy actually landed. The canonical compares main's tip against the last successful deploy and re-dispatches when they differ, so a deploy that never fired — or fired and failed — is retried on the next sweep instead of leaving a commit merged-but-not-live. That failure is invisible without it: CI green, PR merged, box unchanged. Also gained: checks:read + statuses:read on the caller. Public repos do not need them, so their absence is silent here — but the caller is now identical to every other repo's, which is what makes the next fix a one-file change. What stays local is only what genuinely varies: the workflow_run trigger must name the CI workflow exactly as its own `name:` field spells it, and the schedule. Everything else is inputs. Verified: the generated YAML parses, resolves to bitbaum/fleet/.github/workflows/auto-merge-sweep.yml@main, and passes base_branch / ci_workflow / rearm_workflows / deploy_workflow — all four confirmed against the reusable workflow's declared inputs. No file outside the workflow still references the removed script. NOTE: this PR touches .github/workflows, which GITHUB_TOKEN cannot merge, and scheduled sweeps read the workflow from the default branch. It needs one hand-merge; after that the sweep here is the shared one. Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P Co-authored-by: Claude Opus 5 <noreply@anthropic.com>