Skip to content

harness: delete-branch takes a closed PR's own branch - #91

Merged
lneto merged 1 commit into
masterfrom
claude_bump_harness_delete
Nov 29, 2026
Merged

lneto merged 1 commit into
masterfrom
claude_bump_harness_delete

Conversation

@lneto

@lneto lneto commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

The branch of a pull request the session opened and closed unmerged, because another pull request replaced it, could not be deleted: the harness's tools/delete-branch.sh refused it as no merged pull request's head, and the auto mode classifier refused the session's own git push --delete.

With this pull request the script also deletes the branch of a pull request that the account whose token it reads opened and closed unmerged, and only while the branch still points at the commit the pull request closed with, so a branch someone pushed to after the close stays. The branch of an open pull request, or of another account's closed one, is still refused:

# <token file> holds the token of the account that posts, and <tip> is the commit the branch points at
bash harness/tools/delete-branch.sh luainkernel/lunatik claude_crypto_comp_acomp <token file>
# delete-branch: luainkernel/lunatik claude_crypto_comp_acomp deleted at <tip>, the head #2365 closed with

This pull request moves the mount from 04b7e7a to 26f6db9, which luainkernel/harness#91 merged.

The mount moves from 04b7e7a to 26f6db9, which luainkernel/harness#91
merged: tools/delete-branch.sh deletes too the branch of a pull request
the posting account opened and closed unmerged, at the head the pull
request closed with, where the auto mode classifier refused the
session's own delete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto lneto added the complexity: small One line or one file, with a trivial or existing test label Nov 29, 2026
@lneto
lneto merged commit 325042a into master Nov 29, 2026
2 checks passed
@lneto
lneto deleted the claude_bump_harness_delete branch November 29, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: small One line or one file, with a trivial or existing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant