如何使用Github API获取所有者的拉取请求过滤器

mit*_*tnk 4 github-api pull-request

我只想查询特定用户的PR.

我需要使用head参数吗?但是怎么样?

https://api.github.com/repos/org-a/repo-b/pulls?state=open&per_page=1&head=owner:user-c 不起作用.

API参考:https://developer.github.com/v3/pulls/#list-pull-requests

Iva*_*zak 10

使用搜索API和指定repo:REPO,author:USERis:pr过滤器:

https://developer.github.com/v3/search/#search-issues

例如,这里是从引入请求rails/rails来自aderyabin:

https://api.github.com/search/issues?q=is:pr+repo:rails/rails+author:aderyabin