fix: add worktree cleanup handling to merge-pr command#1248
fix: add worktree cleanup handling to merge-pr command#1248dyoshikawa-claw wants to merge 6 commits intomainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Addressed in latest commit: Updated
Also confirmed |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Addressed in latest commit: Updated
Also confirmed |
This comment has been minimized.
This comment has been minimized.
Overall Mergeability Verdict for PR #1248NOT READY TO MERGE - One high severity and one medium severity issue identified that should be addressed before merging. Code Review Results (PR #1248)🔴 Critical Issues: 0None identified. 🟠 High Severity Issues: 11. Undefined Variable Risk in Fallback Scenario (Code Quality)
🟡 Medium Severity Issues: 72. Unclear Variable Scoping Between Steps (Code Quality)
3. Missing Validation Guidance for
4. Missing Error Handling Guidance (Code Quality)
5. Incomplete Validation Failure Guidance (Code Quality)
6. Undocumented git gtr Porcelain Format (Code Quality)
7. Missing Handling for No Match in git gtr list (Code Quality)
8. Inconsistent Validation Strictness for
🟢 Low Severity Issues: 69. Missing Guidance for Determining "Inside Worktree"
10. Potential Branch Deletion Failure in Fallback
11. Incomplete Last Block Handling Guidance
12.
13. Reliance on AI Implementation of Validation
14. Missing Concrete Porcelain Output Example
Positive Aspects✅ Strong security posture - Comprehensive input validation guidance prevents injection attacks Summary
Recommendation: Address the 1 high-severity issue (undefined fallback path handling) before merging. The medium and low severity issues could be addressed in a follow-up PR if needed, though addressing issue #3 (missing validation for |
Summary
.rulesync/commands/merge-pr.mdStep 6 to support worktree-aware cleanupgit worktree list --porcelaingit gtr rm <worktree-name>when a worktree exists, and keep existing branch cleanup fallbackFixes #1165