我一直在使用octokit而且我无法弄清楚如何使用octokit从我自己的个人组织中列出回购。我可以列出其他组织的回购,但我不能为我的生活得到我自己的回购。我有多次阅读文档。
client = Octokit::Client.new(:access_token => github_access_key)
client.repos
那个api电话会继续列出我所在的其他组织的回购,而不是我个人组织的回购。
答案 0 :(得分:1)
client.repos(client.user, affiliation: "owner")
应该这样做。有关选项列表,请参阅https://developer.github.com/v3/repos/#list-your-repositories。
如果你想知道Octokit方法的source code。