Hi everyone,
I’m currently working with the GitHub API and i think there is a problem (or the mistake is mine but i don’t know where)
I tried to know the number of contributors for a specific repository thanks to this endpoint :
https://developer.github.com/v3/repos/#list-contributors
Work well on small repository but seems to be wrong on bigger repository
For example, let’s take the repository twbs/bootstrap
On the github page, it display 1007 contributors
If i try this one : https://api.github.com/repos/twbs/bootstrap/contributors?per_page=1&page=900
I want the 900th contributors. But nothing appeared. Actually, it work below the page 381, but then, up to 381, nothing appear. Like if there is only 381 contributors
So at first i tought the problem was with anonymous contributors. So i tried to add them like this :
https://api.github.com/repos/twbs/bootstrap/contributors?per_page=1&page=900&anon=true
(I added the query anon and set it to true)
And it worked. And actually it worked too much because, if i try to have the 1100th contributors like this:
https://api.github.com/repos/twbs/bootstrap/contributors?per_page=1&page=1100&anon=true
API return me a response with someone but the github page display 1007 contributors.
Am i doing something wrong ?
Thanks for help!