Skip to content

feat(commands): add /branch-cleanup command#57

Merged
kcenon merged 1 commit into
mainfrom
feat/issue-54-add-branch-cleanup-command
Jan 19, 2026
Merged

feat(commands): add /branch-cleanup command#57
kcenon merged 1 commit into
mainfrom
feat/issue-54-add-branch-cleanup-command

Conversation

@kcenon

@kcenon kcenon commented Jan 19, 2026

Copy link
Copy Markdown
Owner

Closes #54

Summary

  • Add /branch-cleanup command for cleaning up merged and stale branches
  • Supports dry-run mode for safe previewing before deletion
  • Includes remote branch cleanup with --include-remote option
  • Configurable stale threshold via --stale-days (default: 90 days)
  • Protected branches list: main, master, develop, release/, hotfix/
  • Follows established command structure with Error Handling section

Test Plan

  • Verify command structure matches existing commands (issue-work, pr-work, issue-create)
  • Test dry-run mode shows branches without deleting
  • Test protected branches are never listed for deletion
  • Verify stale branch detection with configurable threshold

…ches

Add new command to clean up merged and stale branches with:
- Dry-run mode for previewing deletions
- Remote branch cleanup option
- Configurable stale threshold (days since last commit)
- Protected branch list (main, master, develop, release/*, hotfix/*)
- Comprehensive error handling section

Closes #54
@kcenon kcenon mentioned this pull request Jan 19, 2026
4 tasks
@kcenon kcenon merged commit 3fc781a into main Jan 19, 2026
@kcenon kcenon deleted the feat/issue-54-add-branch-cleanup-command branch January 19, 2026 08:06
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.

[Part 2/3] Add /branch-cleanup command

1 participant