【发布时间】:2019-11-03 16:12:23
【问题描述】:
我正在尝试查找用于开放拉取请求计数的 GitHub API,而无需下载它们。 () 我查看了 GitHub 搜索 API 和 repos API https://developer.github.com/v3/search/#search-issues-and-pull-requests https://api.github.com/repos/pulls?state=open 但是这里没找到。
【问题讨论】:
我正在尝试查找用于开放拉取请求计数的 GitHub API,而无需下载它们。 () 我查看了 GitHub 搜索 API 和 repos API https://developer.github.com/v3/search/#search-issues-and-pull-requests https://api.github.com/repos/pulls?state=open 但是这里没找到。
【问题讨论】:
要搜索 PR,您可以使用带有 is:pr 修饰符的问题搜索:
https://api.github.com/search/issues?q=rockstars%20state:open%20is:pr
响应的total_count 字段是您所需要的。
【讨论】: