Add 'merge' command to complete issue workflow from main repo #174
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#174
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add an
iw merge <issue-id>command that can be run from the main repository to complete the full issue lifecycle - merging the PR, closing the issue, and cleaning up the worktree.Problem
Currently, after an issue implementation is complete and the final PR is ready:
gh pr merge)iw rmThis is error-prone and leaves orphaned worktrees if we forget the cleanup step.
Proposed Solution
A single command that handles the full completion flow:
What it should do:
IW-100→ main)rmcommand logicFlags:
--no-squash- Use merge commit instead of squash--keep-worktree- Don't remove the worktree after merge--dry-run- Show what would happen without doing itExample Flow
Acceptance Criteria
rmcommand logic)Notes
rmcommand for worktree cleanup