无法获取 Github 组织存储库的问题

Unable to GET Issues of Github Organization repository

根据 Github Docs,
存储库的列表问题具有以下 GET 请求:

GET /repos/:owner/:repo/issues

我可以使用以下 curl 命令访问我的私有 组织存储库:

curl -H "Authorization: token my-token-with-all-api-scopes" 
  https://api.github.com/repos/my-org/my-repo

然而,当我尝试将 /issues 添加到 curl 命令时,它不会 return 任何负载。

curl -H "Authorization: token my-token-with-all-api-scopes" 
  https://api.github.com/repos/my-org/my-repo/issues

我访问存储库 /issues 的 curl 命令有什么问题?如前所述,我可以毫无问题地访问私有的回购协议。

据我所知,我正在关注 github API 文档。

我 运行 你的命令和我的有效载荷一开始也是空的,但这只是因为我在那个测试库中没有打开的问题。那么你在存储库中有问题吗?如果您不这样做,响应将只是:

[

]

最初我认为您的问题是由于缺少 Accept header,但默认情况下它确实可以在没有 Accept 的情况下工作,尽管文档要求您明确指定一个:

application/vnd.github.VERSION.raw+json
application/vnd.github.VERSION.text+json
application/vnd.github.VERSION.html+json
application/vnd.github.VERSION.full+json