What problem does it solve?
finishing-a-branch ensures a branch is truly merge-ready by enforcing a pre-merge quality gate, producing consistent PR and changelog updates, and removing temporary worktrees and branches after shipping.
Core Features & Use Cases
- Pre-merge quality enforcement: Verifies the branch has no debug code, runs the full test suite, and passes lint/type checks before merging.
- Release documentation consistency: Generates a structured changelog entry and a PR description template aligned to the change you shipped.
- Worktree hygiene: Cleans up OHC-related worktrees and branches to keep the workspace stable and reproducible.
- Use case: You implement a feature or fix, mark it as ready to ship, and want a repeatable checklist that prevents silent test skips, forgotten debug statements, and inconsistent release notes.
Quick Start
Run finishing-a-branch to validate your branch, draft your changelog and PR description, and clean up worktrees after a successful merge.