Restrict to organization repositories that the user is a member of.

Helps to filter out cases where the user doesn't have commit access to most of
an organization's repositories (@ImJasonH goes from 745 to 192).
This commit is contained in:
Mihai Parparita 2014-11-16 21:50:34 -08:00
parent 19f257f02e
commit 543552ae6b

View file

@ -287,6 +287,7 @@ func getRepos(c appengine.Context, githubClient *github.Client, account *Account
pageClientOrgRepos, response, err := githubClient.Repositories.ListByOrg(
*org.Login,
&github.RepositoryListByOrgOptions{
Type: "member",
ListOptions: github.ListOptions{
Page: page,
PerPage: 100,