docs: paginate the review-comments fetch
Copilot review round 2 on #2273: the list endpoint pages at 30, so a large review round would silently drop later comments — and a workflow whose whole point is replying to every comment cannot be documented with a command that returns only the first thirty. --paginate combines with --jq fine (only --slurp does not), verified against a live review. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017nLLLTGc37hQiC8s3mNyhq Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
5a1b5900cf
commit
ed5e98b643
1 changed files with 3 additions and 1 deletions
|
|
@ -291,7 +291,9 @@ arrive late (see step 8).
|
|||
```sh
|
||||
# Fetch the round's comments by REVIEW id — the unpaginated /reviews listing
|
||||
# hides later rounds behind your own replies.
|
||||
gh api repos/modelcontextprotocol/inspector/pulls/<N>/reviews/<REVIEW_ID>/comments \
|
||||
# --paginate: this endpoint returns 30 per page, and a round you only half
|
||||
# fetch is a round you only half answer.
|
||||
gh api --paginate repos/modelcontextprotocol/inspector/pulls/<N>/reviews/<REVIEW_ID>/comments \
|
||||
--jq '.[]|"\(.id) \(.path):\(.line)\n\(.body)"'
|
||||
|
||||
# Reply into one thread, keyed by the comment id from above.
|
||||
|
|
|
|||
Loading…
Reference in a new issue