You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: auto-request Copilot reviews and handle existing PRs in pipeline
- Add `request_copilot_reviews` to make_helpers.sh; `run-review-forever`
now auto-requests Copilot review on waiting PRs before each poll cycle
- Add `worktree-for-issue` command to pipeline_worktree.py that checks
for an existing open PR and checks out its branch instead of creating
a fresh worktree from main
- Fix `fetch_existing_prs` search string ("Fixes #N" → "Fix #N") to
match actual PR title convention
- Update project-pipeline skill to use `worktree-for-issue` and request
Copilot review after moving to Review pool
- Update CLAUDE.md and review-pipeline skill docs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Create an isolated git worktree for this issue so the main working directory stays clean:
139
+
Create an isolated git worktree for this issue. The script automatically checks for an existing open PR — if one exists, it checks out that PR branch (treating it as an incomplete implementation); otherwise it creates a fresh worktree from `origin/main`:
-`action == "resume-pr"`: existing PR checked out — `issue-to-pr` will skip plan creation and jump to execution
150
+
-`action == "create-worktree"`: fresh branch from `origin/main`
151
+
148
152
All subsequent steps run inside the worktree. This ensures the user's main checkout is never modified.
149
153
150
154
### 2. Claim Result
@@ -159,18 +163,21 @@ Invoke the `issue-to-pr` skill with `--execute` (working directory is the worktr
159
163
/issue-to-pr "$ISSUE" --execute
160
164
```
161
165
162
-
This handles the full pipeline: fetch issue, verify Good label, research, write plan, create PR, implement, review, fix CI.
166
+
This handles the full pipeline: fetch issue, verify Good label, research, write plan, create PR, implement, review, fix CI. If an existing PR was detected in Step 1, `issue-to-pr` will resume it (skip plan creation, jump to execution).
163
167
164
168
**If `issue-to-pr` fails after creating a PR:** record the failure, but still move the issue to "Final review" so it's visible for human triage. Report the failure to the user.
165
169
166
170
### 4. Move to "Review pool"
167
171
168
-
After `issue-to-pr` succeeds, move the issue to the `Review pool` column for the second-stage review pipeline:
172
+
After `issue-to-pr` succeeds, move the issue to the `Review pool` column and request a Copilot review so the review pipeline can pick it up:
Copy file name to clipboardExpand all lines: .claude/skills/review-pipeline/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,7 +288,7 @@ Completed: 2/2 | All moved to Final review
288
288
| PR not in Review pool column | Verify status before processing; STOP if not Review pool |
289
289
| Processing a closed PR from a stale issue card | Require PR state `OPEN`; skip stale closed PRs |
290
290
| Guessing on an issue card with multiple linked repo PRs | Stop, show options to the user, and recommend the most likely correct OPEN PR |
291
-
| Picking a PR before Copilot has reviewed | Check `pulls/$PR/reviews`for copilot-pull-request-reviewer[bot];skip if absent |
291
+
| Picking a PR before Copilot has reviewed | Check `pulls/$PR/reviews`for copilot-pull-request-reviewer[bot];if absent, request with `gh copilot-review <PR>` and wait|
0 commit comments