Github API:获取给定组织内所有回购的发布

Github API: GET releases for all repos within a given org

我正在尝试构建一个程序来获取组织内每个存储库的版本。组织内可能有一个、几个或很多回购协议。通过 GitHub API 实现此目标的最佳方法是什么?

我看到个别存储库有一个版本 API (https://api.github.com/repos/:org/:repo/releases),但我希望能够检索整个组织的合并列表。

是否可以在一个请求中执行此操作,或者我是否需要先获取组织 (https://api.github.com/orgs/:org/repos) 的所有存储库,然后 运行 针对每个存储库的一批请求?

Is it possible to do this in one request, or do I need to first fetch all repos for the org (https://api.github.com/orgs/:org/repos), and then run a batch of requests against each repo?

后者(你必须 deal with pagination,如果组织中的回购太多)

mentioned before GraphQL(能够在一次操作中完成您的查询),但它仍然是早期访问预览。