Skip to content

GetCommit returns only the first page of a commit's files #240

Backlog

Description

@SeanTAllen

GetCommit returns a Commit whose files holds only the first page of the commit's changed files. GitHub's single-commit endpoint pages the files array and says so in a Link header: GET /repos/ponylang/github_rest_api/commits/ca84d1c?per_page=1 returns one file and rel="next" up to page=10, and the same commit without per_page returns all 10. GitHub's default page holds 300 files, so a commit that changes more than that comes back with a partial files list and nothing to say more exist. GetCommit uses JSONRequester, which drops the Link header.

This is the same truncation #221 fixes for issue comments and pull request files, but the shape is different: the response is one commit object with a paged list inside it, not a list of objects. Fixing it needs a way to fetch the rest of files, which changes the public Commit or GetCommit API.

Activity

  1. added theissue type on Dec 4, 2026
  2. added
    discuss during sync
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discuss during sync

    Type

    Fields

    Priority

    None yet

    Review Level

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions