Skip to content

Delete unchanged merged branches safely - #3

Merged
Scriptception merged 1 commit into
mainfrom
chore/merged-branch-cleanup
Aug 5, 2026
Merged

Delete unchanged merged branches safely#3
Scriptception merged 1 commit into
mainfrom
chore/merged-branch-cleanup

Conversation

@Scriptception

Copy link
Copy Markdown
Owner

Summary

  • remove same-repository branches after their pull requests merge into main
  • backfill cleanup for existing merged pull requests on the next main push
  • preserve forks, open pull request heads, advanced branches, and protected branches with exact-SHA leases

Validation

  • workflow YAML and embedded Bash syntax validated
  • deletion and preservation paths exercised with mocked remote/API responses
  • action dependency pinned to an immutable commit

@Scriptception
Scriptception merged commit 577b4e8 into main Aug 5, 2026
4 checks passed
@github-actions
github-actions Bot deleted the chore/merged-branch-cleanup branch August 5, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant