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
Copy file name to clipboardExpand all lines: .agents/skills/address-review/SKILL.md
+38-3Lines changed: 38 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,49 @@ The argument is a PR number (e.g. `/address-review 98`). If no number is given,
13
13
14
14
1. Save the current branch name: `git rev-parse --abbrev-ref HEAD`
15
15
2. Checkout the PR branch: `gh pr checkout <number> --detach`
16
-
3. Fetch all review comments:
16
+
3. Fetch review data (pick one):
17
+
18
+
**REST (simple):** Lists inline review comments; it does **not** include per-thread `resolved` status, so you cannot rely on it alone to skip resolved threads.
17
19
18
20
```
19
21
gh api repos/{owner}/{repo}/pulls/<number>/comments --paginate
20
22
```
21
23
22
-
4. Group comments by file. For each comment, extract: `id`, `path`, `line` (or `original_line`), `body`, `user.login`, `in_reply_to_id` (to detect threads).
23
-
5. Filter out threads that are already resolved or where the last message is from the PR author (likely already addressed).
24
+
**GraphQL (for filtering resolved threads):** Returns `reviewThreads` with `isResolved`, `isOutdated`, paths/lines, and nested comments—use this when step 5 must honor “already resolved.” Paginate with `cursor` (use `null` or omit for the first page; then pass `reviewThreads.pageInfo.endCursor` while `hasNextPage` is true).
First page: pass JSON `null` for `cursor` (see `gh help api` / your shell for how `gh` expects null). Later pages: set `cursor` to the previous response’s `reviewThreads.pageInfo.endCursor` until `hasNextPage` is false.
56
+
57
+
4. Group comments by file. For each comment, extract: `id`, `path`, `line` (or `original_line`), `body`, `user.login`, `in_reply_to_id` (to detect threads). If you used GraphQL, map `databaseId` to `id` and thread fields as needed.
58
+
5. Filter out threads that are already resolved (when using GraphQL method).
0 commit comments