Skip to content

chore(devops): add worktree cleanup script (#2467)#2478

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2467
Mar 26, 2026
Merged

chore(devops): add worktree cleanup script (#2467)#2478
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2467

Conversation

@mrveiss
Copy link
Owner

@mrveiss mrveiss commented Mar 26, 2026

Summary

  • Add scripts/cleanup-worktrees.sh for automated stale worktree cleanup
  • Checks GitHub for merged PRs before removing
  • Supports --dry-run, colored output, error handling

Closes #2467

Add scripts/cleanup-worktrees.sh with --dry-run support to prune
worktrees for closed issues. Add step 6 to CLAUDE.md end-of-session
ritual referencing the script.
@mrveiss mrveiss merged commit 7289f6d into Dev_new_gui Mar 26, 2026
2 of 4 checks passed
@mrveiss mrveiss deleted the fix/issue-2467 branch March 26, 2026 19:24
mrveiss added a commit that referenced this pull request Mar 26, 2026
…#2507, #2508)

Re-add worktree/branch cleanup rules to CLAUDE.md that were lost when
PR #2478 merged. Enhance cleanup-worktrees.sh to read actual branch
names from worktrees (not hardcoded fix/ prefix), delete remote branches,
and clean orphaned branches for closed issues.
@github-actions
Copy link

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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