Skip to content

Conversation

@Aryan-Verma-999
Copy link

@Aryan-Verma-999 Aryan-Verma-999 commented Dec 12, 2025

Fix: Implement GraphQL Pagination for Complete Data Fetching

Fixes #3

Problem

The script only fetched the first 100 PRs/issues per repository, missing contributions in larger repos.

Solution

  • Implemented cursor-based pagination using pageInfo { hasNextPage, endCursor }
  • Added early termination when hitting items older than startDate (optimization)

Testing

  • Verified against 39 RocketChat repositories
  • Rocket.Chat now shows 115+ PRs (previously capped at 100)

Happy to make any changes if needed!

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.

[Bug] GraphQL Pagination Missing - Only First 100 PRs/Issues Fetched

1 participant