Skip to content

Paginate GitHub comment reactions - #334

Open
joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/103-github-reaction-pagination
Open

joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/103-github-reaction-pagination

Conversation

@joei4cm

@joei4cm joei4cm commented Dec 4, 2026

Copy link
Copy Markdown

Summary

listCommentReactions requested only the first 100 reactions on a GitHub issue comment. If a reporter's 👍/👎 was on a later page, GITHUB_REACTION_POLL never saw it and the message stayed without feedback.

Fixes #103

Changes

  • Paginate reactions.listForIssueComment with per_page: 100 until GitHub returns a short page.
  • Add the optional page parameter to the minimal client interface.
  • Add regression coverage for a reporter reaction on page 2 and for the exact-100 boundary, where one more request is required to prove there is no next page.

Verification

  • vitest run shared/src/integrations/__tests__/github-client.test.ts --maxWorkers=2 — 7 passed.
  • vitest run queue/src/handlers/__tests__/github-reaction-poll.test.ts --maxWorkers=2 — 16 passed.
  • tsc --project shared/tsconfig.json --noEmit — passed.
  • Prettier, ESLint, and git diff --check — passed.

The full repository matrix is left to CI.

🤖 Generated with Claude Code

Read every page of issue comment reactions so feedback from a reporter beyond the first 100 reactions is visible to the poller. Cover later pages and the exact-page boundary.

Co-Authored-By: Claude Code <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

listCommentReactions: paginate beyond 100 reactions

1 participant