问题描述
我是私人存储库的合作者,能够编辑,推送代码,创建问题,关闭问题等。我正在尝试创建有关在存储库中打开和关闭的问题的报告。为此,我需要根据时间间隔和标签来解决问题。我发现GitHub搜索API对我有用。
我首先创建了一个令牌(PAT),为它提供了整个回购范围
然后测试API,我用令牌点击了以下URL
https://api.github.com/search/issues?q=repo:orgname/reponame
我能够得到结果。
然后,我尝试通过使用相同标记添加is:issue
和is:closed
限定词来缩小范围
https://api.github.com/search/issues?q=repo:orgname/reponame+is:issue+is:closed
我收到以下答复
{
"message": "Validation Failed","errors": [
{
"message": "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.","resource": "Search","field": "q","code": "invalid"
}
],"documentation_url": "https://docs.github.com/v3/search/"
}
存在问题,我可以在Github网站上进行搜索,但无法通过github搜索api进行搜索。我可以应用回购限定词,但不能添加任何其他限定词。
我在这里想念什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)