From 543552ae6b4dcd3b85f57446ceb7457cfa99ba95 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sun, 16 Nov 2014 21:50:34 -0800 Subject: [PATCH] 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). --- app/repos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/repos.go b/app/repos.go index 8ecef40..da7bb32 100644 --- a/app/repos.go +++ b/app/repos.go @@ -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,