cleanup_worktree
Merge a worktree branch into main and remove it after tests and build pass. Use force to bypass validation only when necessary.
Instructions
Merges worktree to main and removes it. REQUIRES tests and build to pass first! Run run_e2e_tests and verify_build before calling this. Use force=true to bypass (NOT recommended).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force cleanup even if tests failed. WARNING: This bypasses the testing gate! | |
| worktree_path | Yes | Path to worktree | |
| commit_message | No | Custom commit message for the merge. If not provided, uses default message. |