Mary
Mary

Reputation: 33

GitHub REST API for getting repo's all open pull requests COUNT without downloading them

I'm trying to find a GitHub APIs for open pull requests count, without downloading them. () I looked through GitHub search API and repos API https://developer.github.com/v3/search/#search-issues-and-pull-requests https://api.github.com/repos/pulls?state=open But wasn't able to find here.

example of big repository

Upvotes: 1

Views: 965

Answers (1)

Pavel Lint
Pavel Lint

Reputation: 3527

To search for PRs, you can use issues search with is:pr modifier:

https://api.github.com/search/issues?q=rockstars%20state:open%20is:pr

The total_count field of the response is what you need.

Upvotes: 3

Related Questions