Skip to content

release: v3.10.9 — a fix PR whose landing branch was merged and kept is retargeted to the default branch - #292

Merged
AltDoug merged 5 commits into
mainfrom
fix/mwg-landed-base
Oct 27, 2026
Merged

AltDoug merged 5 commits into
mainfrom
fix/mwg-landed-base

Conversation

@AltDoug

@AltDoug AltDoug commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Fixes ledger lib/autofix-ship.sh:658 (operator picked "retarget + rebuild") and the tests/autofix-sweep.bats:1067 SIGPIPE flake.

What changes

  • merge-when-green (and the --guard watcher) checks a fix PR's base: if that branch was merged into the default branch by a same-repo PR and its tip is still exactly the merged head, the PR is retargeted to the default branch. GitHub only does this itself when the branch is deleted; sayciao #320 sat on gsd/phase-24-resume after #318 because that repo keeps merged branches.
  • After a retarget the PR is always brought up to date with the default branch, even when GitHub calls it mergeable: after a squash merge only the fix's own change is rebuilt (the 3.10.7 rebuild now also reads a manual BaseRefChangedEvent), otherwise the default branch is merged in; checks run again before merging.
  • Not retargeted: a branch with commits after its merge (sessions reuse branches), a protected branch (kept develop/release), fork PRs with the same branch name.
  • Guard: a refused retarget turns the armed auto-merge off; after a retarget it arms auto-merge again (a failure is logged).

Evidence

🤖 Generated with Claude Code

https://claude.ai/code/session_01MVx3HTvihe7tJycZ7B7mjC

AltDoug and others added 5 commits October 27, 2026 05:31
…ledger lib/autofix-ship.sh:658)

_fi_af_mwg_landed retargets to the default branch when the landing branch's
tip is still the head that merged; _fi_af_mwg_squashed also reads a manual
BaseRefChangedEvent. tests/autofix-merge-landed-base.bats 6/6, related merge
files 43/43. Not yet: rebase onto fix/mwg-stale-landing (#290), version
bump, CHANGELOG, full suite, live e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVx3HWoDptxRUFfRDGQbYE
…ix-sweep.bats:1067 SIGPIPE flake)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVx3HTvihe7tJycZ7B7mjC
…is retargeted to the default branch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVx3HTvihe7tJycZ7B7mjC
… is always brought up to date, protected and fork branches skipped, default lookup retried

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVx3HTvihe7tJycZ7B7mjC
…x-sweep.bats:1067 with #292

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVx3HTvihe7tJycZ7B7mjC
@AltDoug
AltDoug enabled auto-merge (squash) October 27, 2026 09:34
@AltDoug
AltDoug merged commit 9658c5f into main Oct 27, 2026
7 checks passed
@AltDoug
AltDoug deleted the fix/mwg-landed-base branch October 27, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant