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
gh pr list --json statusCheckRollup truncates each PR's rollup, so any
filter applied to it can falsely accept PRs whose pending/failing checks
were dropped. Use the list call only to enumerate candidate claude/* PR
numbers, then re-query each one with gh pr view to get the complete
rollup before applying the all-green filter.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/commands/find-mergeable-claude-prs.md
+24-14Lines changed: 24 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,30 +4,40 @@ description: Find Claude-authored PRs with all-green full-sweep validation and c
4
4
5
5
Find open PRs authored by Claude (branches starting with `claude/`) whose full-sweep validation has completed all-green, then prompt the user before merging.
6
6
7
-
## Step 1 — fetch open PR status
7
+
## Step 1 — list candidate `claude/*` PRs
8
+
9
+
`gh pr list --json statusCheckRollup` truncates each PR's rollup, so it can't be trusted for the per-check filter. Use it only to get the candidate numbers, then re-query each PR individually.
8
10
9
11
```bash
10
12
gh pr list --repo SemiAnalysisAI/InferenceX --state open --limit 200 \
0 commit comments