I'm trying to use the GitHub v3 API to get the full list of commits between two SHAs, using the comparison API (/repos/:owner/:repo/compare/:base...:head
), but it only returns the first 250 commits and I need to get all of them.
I found the API pagination docs, but the compare API doesn't appear to support either the page
or per_page
parameters, either with counts or SHAs (EDIT: the last_sha
parameter doesn't work either). And unlike the commits API, the compare API doesn't seem to return a Link
HTTP header.
Is there any way to either increase the commit count limit on the compare API or to fetch a second page of commits?