Skip to content

[Schema Inaccuracy] Commit compare endpoint limits the number of files returned #33

@petewalker

Description

@petewalker

Schema Inaccuracy

The /repos/{owner}/{repo}/compare/{base}...{head} endpoint has an undocumented limit on the number of files it returns (300).

Expected

There would either be no limit on the number of files returned, or there would be a way to paginate them.

Reproduction Steps

For example, see facebook/react@v16.10.2...v16.12.0 - there are 366 files changes between these 2 tags.

If you access the API:

$ curl -sS https://api.github.com/repos/facebook/react/compare/v16.10.2...v16.12.0 | jq -r '.files | length'

outputs

300

Only the first 300 files affected are returned in the response.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions