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/<prefix>-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 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.7 committed 2026-05-28 21:06:34 +02:00
1 parent 915c7d4894
commit af628847bb
1 file changed
+1
+1
View File
@@ -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