Skip to content

Do not fail the run when the merged branch is already deleted - #63

Merged
Phlogistique merged 2 commits into
mainfrom
tolerate-deleted-merged-branch
Nov 8, 2026
Merged

Phlogistique merged 2 commits into
mainfrom
tolerate-deleted-merged-branch

Conversation

@Phlogistique

@Phlogistique Phlogistique commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

Deleting the merged branch is the last step, after the children are updated and retargeted, but a delete that fails aborts the run and turns it red. Someone clicking "Delete branch" on the merged PR right after merging is enough to race it, as happened on scortexio/sensei#8247.

If the branch still exists but moved, the run still fails and the branch stays, as in #66.

Deleting the merged branch is the last step, after the children are
updated and retargeted, but a delete that fails aborts the run and turns
it red. Someone clicking "Delete branch" on the merged PR right after
merging is enough to race it, as happened on scortexio/sensei#8247.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014s42W7MmtUomEBMyTTCcme
@Phlogistique
Phlogistique marked this pull request as ready for review November 6, 2026 16:58
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Phlogistique
Phlogistique merged commit 5ccd6f7 into main Nov 8, 2026
3 checks passed
@github-actions
github-actions Bot deleted the tolerate-deleted-merged-branch branch November 8, 2026 12:45
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