Skip to content

feat(miners): add cursor pagination to pulls and issues endpoints#126

Open
Yurii214 wants to merge 1 commit into
entrius:testfrom
Yurii214:feat/100-miner-pagination
Open

feat(miners): add cursor pagination to pulls and issues endpoints#126
Yurii214 wants to merge 1 commit into
entrius:testfrom
Yurii214:feat/100-miner-pagination

Conversation

@Yurii214
Copy link
Copy Markdown

Closes #100

Summary

  • Add cursor-based keyset pagination to GET /miners/:githubId/pulls and GET /miners/:githubId/issues
  • New cursor and limit query params; responses include next_cursor
  • Default page size 50, hard cap 200

Why

Unbounded miner endpoint responses can return hundreds of nested PR/issue rows. Pagination bounds payload size while keeping backward-compatible response shape.

Test plan

  • npm run lint passes
  • npm run build passes

Closes entrius#100

Add keyset pagination with opaque base64url cursors, default limit 50
(capped at 200), and next_cursor in responses for GET
/miners/:githubId/pulls and /miners/:githubId/issues.
@xiao-xiao-mao xiao-xiao-mao Bot added the enhancement New feature or request label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pagination for /miners/:githubId/pulls and /issues

1 participant