Skip to content

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

Open
Phlogistique wants to merge 2 commits into
mainfrom
tolerate-deleted-merged-branch
Open

Phlogistique wants to merge 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>
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