Skip to content

chore: add behind branch cleanup script - #12

Merged
philippwallrafen merged 3 commits into
mainfrom
chore/add-behind-branch-cleanup-script
Oct 6, 2026
Merged

philippwallrafen merged 3 commits into
mainfrom
chore/add-behind-branch-cleanup-script

Conversation

@philippwallrafen

Copy link
Copy Markdown
Contributor

Summary

  • add scripts/delete-pheaz-behind-branches.sh
  • scan non-fork, non-archived organization repositories
  • compare every non-default branch against the repository's current default branch by commit SHA
  • delete only branches with ahead_by == 0 and behind_by > 0
  • preserve identical, ahead, and diverged branches
  • revalidate the default branch name/SHA and candidate branch SHA immediately before deletion
  • preserve branches that move during the scan

Validation

  • bash -n scripts/delete-pheaz-behind-branches.sh
  • verified the branch diff contains only the new script
  • verified file mode is 100755

@philippwallrafen
philippwallrafen merged commit 3540469 into main Oct 6, 2026
1 check passed
@philippwallrafen
philippwallrafen deleted the chore/add-behind-branch-cleanup-script branch October 6, 2026 13:52
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