fix(ai-workflow): delete merged local task branches

This commit is contained in:
plebeius
2026-03-10 16:23:09 +08:00
parent 7699cdbbb8
commit f27a8233bc
4 changed files with 80 additions and 6 deletions
+2 -1
View File
@@ -152,6 +152,7 @@ After the PR is merged:
git switch master
git pull --ff-only
git branch -D <head-branch> 2>/dev/null || true
git branch -D "pr/<pr-number>" 2>/dev/null || true
```
If the PR branch lived in a dedicated worktree, remove that worktree after leaving it:
@@ -171,4 +172,4 @@ Tell the user:
- whether the PR was merged
- whether the linked issue was confirmed closed
- whether the linked project item was confirmed `Done`
- whether the branch and any worktree were cleaned up
- whether the feature branch, local `pr/<number>` alias, and any worktree were cleaned up