gpt4 book ai didi

github-api - 如何使用Github API与所有者获取拉取请求过滤器

转载 作者:行者123 更新时间:2023-12-04 22:45:44 25 4
gpt4 key购买 nike

我只想查询特定用户的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

最佳答案

使用Search API并指定repo:REPOauthor:USERis:pr过滤器:

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

例如,这是来自rails/railsaderyabin的拉取请求:

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

关于github-api - 如何使用Github API与所有者获取拉取请求过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26879217/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com