message no. 164868
Posted by twidi in #github at 2017-03-05T12:06:43Z
indeed you're right about pull requests! For the commits, the better idea I have uses at max two api calls: first go to the /commits endpoint, read the Link header. If it exists and there is a `rel="last"` entry, you have the number of page, simply do 30 * this number - 1 , then go to link for this last page , get the data, and add the number of commits on this call. If there is no last page, you have only one page so simply count the commits on the first