5 Commits
Author SHA1 Message Date
G bc63d4219c fix(ci): declare the failing-job list before the branch that can skip it (#5) 2026-08-07 10:01:39 +00:00
G 2874b2e777 fix(ci): a red base must not trap the PR that repairs it (#4) 2026-08-07 09:39:17 +00:00
G 55a7df98c7 fix(ci): stop skipping conflicts, and keep branches current (#3) 2026-08-07 07:15:07 +00:00
GandClaude Opus 5 b7081b8046 fix(ci): drain the merge queue oldest-first, not newest-first (#2)
`gh pr list` returns newest-first, and the sweep merges the first eligible PR
then stops. So the newest green PR wins every sweep, and an older one can wait
indefinitely.

Observed in maonakamoto/fleetcrown on 2026-08-06: two consecutive sweeps merged
the two newest PRs while three older green ones sat untouched and were never
even evaluated. With several agent sessions opening PRs continuously that is
starvation — and it starves the worst candidate, since the longest-waiting PR
is the one whose checks were proven against the most now-stale base.

PR numbers increase monotonically with creation, so sorting ascending is FIFO.
The ordering was never a decision, just whatever gh happened to return.

Fixed upstream first (fleetcrown #182) and verified in production there: the
sweep immediately after it landed correctly took the oldest open PR rather than
the newest. This is that one-line change, applied to the fleet.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 13:35:35 +00:00
G 0071384a40 ci: green PRs merge and deploy themselves (#1)
* ci: add the auto-merge sweep policy

* ci: green PRs merge and deploy themselves

* ci: allow CI to be dispatched so auto-merge can re-arm it
2026-08-05 19:15:49 +02:00