Techiio-author
Started by Debarghya DasSep 25, 2021

Open
Empty files response from GitHub compare API

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I'm getting inconsistent responses by using the GitHub API to compare two commits. Sometimes it returns fine, sometimes I get a response that includes all of the right information, except for an empty "files":[] section.

It seems to only come back incorrectly when it's comparing commits from master rather than another branch created from master. That's the only pattern I've detected with it so far.

When I use a browser to compare the commits, it's displaying all of the right files there. And I'm only comparing two commits that were back to back, so it's not like it's hitting the 250 commit limit to compare between.

Any idea why the GitHub API wouldn't include the files section properly every time?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance