如何从Github API获取私人组织存储库列表?

我想从Github API V 3.0中检索私人组织信息库,在组织帐户中有一个私有信息库,当我想要获取我的信息库时,API只是返回我的公共和公共叉存储库,但私有存储库不会检索,任何想法?

如果回购在一个组织之下,则需要检索组织回购清单,而不是您自己的用户回购清单。 所以,而不是使用这个:

http://developer.github.com/v3/repos/#list-user-repositories

你需要使用这个:

http://developer.github.com/v3/repos/#list-organization-repositories

解决了! 我正在使用github-node并调用getFromUser方法,但应该使用getAll方法来检索私有和公共回购。 它还返回我分叉的私人组织存储库。