我无法通过github搜索api过滤问题

问题描述

我是私人存储库的合作者,能够编辑,推送代码,创建问题,关闭问题等。我正在尝试创建有关在存储库中打开和关闭的问题的报告。为此,我需要根据时间间隔和标签解决问题。我发现GitHub搜索API对我有用。

我首先创建了一个令牌(PAT),为它提供了整个回购范围

scope screenshot

然后测试API,我用令牌点击了以下URL

https://api.github.com/search/issues?q=repo:orgname/reponame

我能够得到结果。

然后,我尝试通过使用相同标记添加is:issueis: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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...