Skip to content

Commit 0caeb3c

Browse files
tablackburnclaude
andauthored
ci: delete redundant bot-branch-delete workflow; make cleanup explicit (#42)
Mirror the change from SrrDBAutomationToolkit#29: - Add --delete-branch to both gh pr merge calls in auto-merge-bots.yml so bot PR branches are deleted explicitly at merge time. - Remove the redundant delete-merged-bot-branches.yml on-close workflow, which raced with merge-time cleanup and only ever failed with "Reference does not exist". Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ff1429c commit 0caeb3c

2 files changed

Lines changed: 2 additions & 24 deletions

File tree

.github/workflows/auto-merge-bots.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Auto-merge minor and patch updates
2121
if: steps.meta.outputs.update-type != 'version-update:semver-major'
22-
run: gh pr merge --auto --squash "$PR_URL"
22+
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
2323
env:
2424
PR_URL: ${{ github.event.pull_request.html_url }}
2525
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Auto-merge pre-commit.ci updates
32-
run: gh pr merge --auto --squash "$PR_URL"
32+
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
3333
env:
3434
PR_URL: ${{ github.event.pull_request.html_url }}
3535
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/delete-merged-bot-branches.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)