feat(worktrees): extend the ephemeral-worktree revert to the CLI pr revert and orchestrate revertMergedPR #131
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#131
Loading…
Add table
Add a link
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?
#20 (merged) moved
madt_prs action=revertinto a disposable OS-temp linked worktree, so a conflicted revert can no longer wedge the caller's primary checkout. Two siblings still rungit revertin the primary checkout and carry exactly the wedge bug the MCP path just lost:madtea pr revertpathrevertMergedPRstageBoth were deliberately left out of #20's scope (the orchestrate path also needs dir=/owner_repo= plumbing, which is #14's territory).
Ask
Port the ephemeral-worktree flow from the merged #20 implementation (internal/service/git ephemeral worktree helpers; conflict rail naming the worktree + madt_* resolution/abandon steps) to both call sites. Orchestrate work should land on top of #14's schema support rather than duplicating it.
Acceptance
pr revertand a conflicted orchestrate revert leave the primary checkout untouched (same branch, clean tree, no in-progress state), conflict parked in a named disposable worktree - hermetic tests, same pattern as #20's.Refs #20 (merged implementation to port), #14 (orchestrate scope plumbing this builds on).