From af628847bb1a6495906c3e577e6e985f28bf8488 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 28 May 2026 20:38:47 +0200 Subject: [PATCH] fix(update/open_pr): delete head branch when closing superseded PRs The previous gh pr close call left the bot's daily update branch behind on the remote, so stale update/-YYYYMMDD refs accumulated indefinitely. --delete-branch removes the head ref on close. Scope-safe because the loop only iterates branches matching ${UPDATE_BRANCH_PREFIX}-. Co-Authored-By: Claude Opus 4.7 --- scripts/github/update/open_pr.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/github/update/open_pr.sh b/scripts/github/update/open_pr.sh index 1da1810942..7a0b68b7ee 100755 --- a/scripts/github/update/open_pr.sh +++ b/scripts/github/update/open_pr.sh @@ -129,5 +129,6 @@ for entry in "${OPEN_PRS[@]}"; do echo "Closing superseded PR #${pr_num} (${pr_branch})" gh pr close "${pr_num}" \ --repo "${REPO}" \ + --delete-branch \ --comment "Superseded by #${PR_NUMBER}." done