如何使用 github-api 为组织创建存储库?

How to create repository for organization using github-api?

我正在使用 github-api, an npm plugin, to create and manage repositories in node.js. I was able to create repositories for a user, and read a user's organizations, but I could not find out how to create a repository for an organization. I looked through the documentation,但我仍然对如何创建存储库感到困惑。

提前致谢!

此客户端似乎不支持为组织创建存储库。只有createRepofor user.

用户的请求如下所示:

POST /user/repos

对于组织:

POST /orgs/:org/repos

其中 :org 是组织名称。