I want to obtain a list of all pull requests on a repo through the github API.
I've followed the instructions at http://developer.github.com/v3/pulls/ but when I query /repos/:owner/:repo/pulls
it's consistently returning fewer pull requests than displayed on the website.
For example, when I query the torvalds/linux
repo I get 9 open pull requests (there are 14 on the website). If I add ?state=closed
I get a different set of 11 closed pull requests (the website shows around 20).
Does anyone know where this discrepancy arises, and if there's any way to get a complete list of pull requests for a repo through the API?