我只想从特定用户查询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
使用搜索API并指定repo:REPO
,author:USER
和is:pr
过滤器:
https://developer.github.com/v3/search/#search-issues-and-pull-requests
例如,这是来自rails/rails
的来自aderyabin
的拉取请求:
https://api.github.com/search/issues?q=is:pr+repo:rails/rails+author:aderyabin