Add branch cleanup script for Waves 1-2 merged and orphan branches#2435
Open
SatoryKono wants to merge 2 commits intomainfrom
Open
Add branch cleanup script for Waves 1-2 merged and orphan branches#2435SatoryKono wants to merge 2 commits intomainfrom
SatoryKono wants to merge 2 commits intomainfrom
Conversation
Wave 1 (33): merged branches, orphan, backups, sub-PR temps Wave 2 (646): duplicate clusters (keep newest per task name) Usage: ./scripts/cleanup_branches.sh --execute https://claude.ai/code/session_01U94fa9HAyxdJpH6mxsjuUm
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Inventory: 2189 remote branches, 2120 orphaned (no common ancestor with main after history rewrite), 2 fully merged, 46 legit stale duplicates. ~20 branches kept for review/merge. https://claude.ai/code/session_01U94fa9HAyxdJpH6mxsjuUm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a comprehensive branch cleanup script to remove 679 stale branches from Waves 1-2 of the BioETL project, including merged branches, orphaned branches, backup branches, and duplicate clusters generated by AI assistants (Claude, Copilot).
Changes
scripts/cleanup_branches.sh: Bash script with dry-run and execute modes for safe branch deletion
--executeflag for actual deletion--batch-size=Nparameterscripts/branches_to_delete.txt: Plain text list of 679 branch names to be deleted
Rationale
The repository accumulated significant technical debt with hundreds of stale branches from AI-assisted development iterations. This cleanup targets:
Checklist
https://claude.ai/code/session_01U94fa9HAyxdJpH6mxsjuUm