857 B
857 B
name, description
| name | description |
|---|---|
| merge | Merge a reviewed feature branch to main and clean up. |
Merge
Merge a completed feature branch into main and delete it.
Input
/merge <NNN-slug> — the prefixed feature slug (e.g. 042-csv-export).
If no slug is provided, check the current branch (git branch --show-current). If it matches feat/<NNN-slug>, derive the slug from it. Otherwise, list feature branches and ask: "Which branch should I merge?"
Steps
- Confirm the feature spec at
docs/features/<NNN-slug>.mdhas statusapproved. If not, stop and report. git checkout maingit merge --no-ff feat/<NNN-slug>- If merge conflicts occur, attempt auto-resolution. If that fails, stop and report the conflicting files.
git branch -d feat/<NNN-slug>- Report summary: feature name, number of commits merged, what was built.