Skip to content

Return issue comments and pull request files as paginated lists - #239

Open
SeanTAllen wants to merge 1 commit into
mainfrom
issue-221-paginate-comments-files
Open

SeanTAllen wants to merge 1 commit into
mainfrom
issue-221-paginate-comments-files

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

GetIssueComments and GetPullRequestFiles made one request and returned
that page as an array, dropping GitHub's Link header. An issue with more
comments than fit on a page, or a pull request with more changed files,
came back incomplete with no way to fetch the rest or tell that more
existed.

Both operations, and Issue.get_comments() and PullRequest.get_files(),
now return a PaginatedList like every other list operation. This removes
the public single-page array types and converters.

Closes #221

GetIssueComments and GetPullRequestFiles made one request and returned
that page as an array, dropping GitHub's Link header. An issue with more
comments than fit on a page, or a pull request with more changed files,
came back incomplete with no way to fetch the rest or tell that more
existed.

Both operations, and Issue.get_comments() and PullRequest.get_files(),
now return a PaginatedList like every other list operation. This removes
the public single-page array types and converters.

Closes #221
@SeanTAllen SeanTAllen added do not merge This PR should not be merged at this time changelog - changed Automatically add "Changed" CHANGELOG entry on merge labels Dec 4, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Dec 4, 2026

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

changelog - changed Automatically add "Changed" CHANGELOG entry on merge discuss during sync Should be discussed during an upcoming sync do not merge This PR should not be merged at this time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue comments and pull request files silently stop at the first page

2 participants