How can I get a list of all pull requests for a repo through the github API?

You can get all pull requests (closed, opened, merged) through the variable state.

Just set state=all in the GET query, like this->

https://api.github.com/repos/:owner/:repo/pulls?state=all

For more info: check the Parameters table at https://developer.github.com/v3/pulls/#list-pull-requests

Edit: As per Tomáš Votruba’s comment:

the default value for, “per_page=30”. The maximum is per_page=100. To get more than 100 results, you need to call it multiple itmes: “&page=1”, “&page=2″…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)