mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-05 17:28:21 +00:00
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:
1 parent
915c7d4894
commit
af628847bb
1 file changed
+1
@@ -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
|
||||
Reference in new issue
Block a user