Skip to content

feat(comments): --all flag to fetch every comment page - #7

Open
Millon15 wants to merge 1 commit into
zach-snell:mainfrom
Millon15:feat/comments-all-pages
Open

feat(comments): --all flag to fetch every comment page#7
Millon15 wants to merge 1 commit into
zach-snell:mainfrom
Millon15:feat/comments-all-pages

Conversation

@Millon15

Copy link
Copy Markdown
Contributor

Problem

bbkt prs comments list returns a single page (default 50), silently dropping later comments on busy PRs.

Fix

Add --all, which follows the paginated next cursor and merges every page into one result (new ListAllPRComments client method). Existing page/pagelen flags are unchanged.

Verification

  • TestListAllPRComments_WalksPages uses a two-page VCR cassette and asserts the merge.
  • go test ./... green.

Independent of the comment-resolution PR. Note: if the resolution PR (which adds fields=+values.resolution… to the list URL) merges first, this branch's pagination cassette needs the fields param added on rebase, since the VCR matcher compares the full request URL.

`bbkt prs comments list` returns a single page (default 50), silently
dropping later comments on busy PRs. Add --all, which follows the
paginated next cursor and merges all pages into one result via the new
ListAllPRComments client method. Existing page/pagelen flags unchanged.

Covered by a two-page VCR fixture asserting the merge.
Millon15 added a commit to Millon15/bbkt that referenced this pull request Jun 25, 2026
…-snell#6 x zach-snell#7 integration)

Combining the resolution-aware list (zach-snell#6) with --all paging (zach-snell#7): ListAllPRComments
routes every page through ListPRComments, which appends
`&fields=%2Bvalues.resolution.user.display_name`. The list_comments_paged cassette
was recorded before zach-snell#6, so its request URLs lacked that param and the exact-URL VCR
matcher (matchMethodAndURL) missed. Add the param to both recorded request URLs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant