Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想列出我对所有 60 个具有写入权限的组织的所有存储库。当我尝试通过https://api.github.com/orgs/:org/repos列出存储库时,它将存储库的数量限制为 30,我如何才能访问组织中的所有存储库?
GitHub API状态:
返回多个项目的请求默认分页为 30 个项目。您可以使用参数指定更多页面?page。
?page
或者,对于 Github API,您可以将per_page参数设置为更大的数字(最多100)。值得注意的是,并非所有端点都尊重此参数,请参见以下说明:
请注意,由于技术原因,并非所有端点都尊重 ?per_page 参数
你可以参考这个链接