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 api --paginate outputs separate JSON documents per page. Without
jq -s, each page is processed independently, fragmenting the output.
This adds -s to all four paginated jq commands so results are
aggregated into a single array before projection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Skip comments belonging to already-resolved threads (match via `thread_id` and `is_resolved` from the GraphQL response)
74
77
- Skip comments where `in_reply_to_id` is set (these are replies, not top-level comments)
75
78
- Do not skip bot-generated comments by default. Many actionable review comments in this repository come from bots.
76
79
- Deduplicate repeated bot comments and skip bot status posts, summaries, and acknowledgments that do not require a code or documentation change
77
-
- Treat as actionable by default only: correctness bugs, regressions, missing tests, and clear inconsistencies with adjacent code
80
+
- Treat as actionable by default only: correctness bugs, regressions, security issues, missing tests, and clear inconsistencies with adjacent code
78
81
- Treat as non-actionable by default: style nits, speculative suggestions, changelog wording, duplicate bot comments, and "could consider" feedback unless the user explicitly asks for polish work
79
82
- Focus on actionable feedback, not acknowledgments or thank-you messages
80
83
@@ -101,13 +104,13 @@ Triage rules:
101
104
102
105
## Step 5: Create Todo List
103
106
104
-
Create a todo list with TodoWrite containing **only the `MUST-FIX` items**:
107
+
Create a task list with TaskCreate containing **only the `MUST-FIX` items**:
105
108
106
-
- One todo per must-fix comment or deduplicated issue
- For general comments: Parse the comment body and extract the must-fix action as the subject
112
+
-Description: Include the full review comment text and any relevant context
113
+
- All tasks should start with status: `"pending"`
111
114
112
115
## Step 6: Present Triage to User
113
116
@@ -126,7 +129,8 @@ Present the triage to the user - **DO NOT automatically start addressing items**
126
129
127
130
## Step 7: Address Items, Reply, and Resolve
128
131
129
-
When addressing items, after completing each selected todo item, reply to the original review comment explaining how it was addressed.
132
+
When addressing items, after completing each selected item (whether `MUST-FIX` or `DISCUSS`), reply to the original review comment explaining how it was addressed.
133
+
If the user selects `DISCUSS` items to address, treat them the same as `MUST-FIX`: make the code change, reply, and resolve the thread.
130
134
If the user selects skipped/declined items for rationale replies, post those replies too.
131
135
132
136
**For issue comments (general PR comments):**
@@ -219,3 +223,4 @@ Note: Only show the "Optional: rationale replies" line when there are `SKIPPED`
219
223
220
224
- Rate limiting: GitHub API has rate limits; if you hit them, wait a few minutes
- GraphQL inner pagination: The `comments(first:100)` inside each review thread is hardcoded. Threads with >100 comments (rare) will have older comments truncated. The outer `reviewThreads` pagination is handled by `--paginate`.
0 commit comments