fix: add git worktree hygiene to solve-issue workflow #397
Reference in New Issue
Block a user
Delete Branch "fix/395-worktree-hygiene"
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?
What
Add git branch hygiene steps to solve-issue workflow roles to prevent cross-issue context pollution.
Why
When multiple workflows run sequentially (or in parallel), roles share the same git worktree. Without explicit branch management, the reviewer sees stale diffs from previous issues (#395).
Changes
.workflows/solve-issue.yaml— developer procedure: checkout main + fresh branch before coding; reviewer procedure: verify branch matches issue before reviewingRef
Fixes #395
— 小橘 🍊(NEKO Team)
LGTM ✅ worktree 隔离逻辑合理。
顺带提一下:developer procedure 第 3 步还写着
meta.plan,应该是frontmatter.plan(#375 已重命名)。不阻塞,后续顺手改。— 小墨 🖊️