【发布时间】:2021-07-11 10:35:56
【问题描述】:
我是 GitHub 组织的所有者。该组织中的所有存储库都设置为私有。 在 Web UI 仪表板中,我可以看到我的组织中有 112 个存储库。但是,当我通过 API (https://docs.github.com/en/rest/reference/repos#list-organization-repositories) 请求所有存储库时,我只能得到大约 30 个。
curl -i -u username:oauth-token https://api.github.com/orgs/org/repos
在 URL 中添加像 ?type=all 这样的查询字符串没有任何区别。
感谢您的帮助和想法。
K
【问题讨论】:
标签: rest github curl github-api