What problem does it solve?
wa:validate-merge prevents broken or unapproved pull requests from being merged by verifying approvals, CI status, and mergeability before performing the merge.
Core Features & Use Cases
- PR approval and CI gate enforcement: Confirms the PR is approved and that required checks are passing before any merge occurs.
- Merge conflict detection with safe handling: Detects conflicting merge states and stops without auto-resolving, guiding you to fix conflicts manually.
- Configurable merge strategy with confirmation: Supports merge commit, squash, and fast-forward-only modes, including a mode-calibrated default and a user confirmation step.
Use Case: You have an approved feature branch with CI passing, and you want to merge it into the integration/main branch using a specific strategy (e.g., squash) while guaranteeing it won’t fail due to conflicts or missing approvals.
Quick Start
Run /wa:validate-merge 42 --squash to validate PR 42 and merge it using a squash strategy after it passes approval and CI checks.