Skip to content

Commit

Permalink
Fixed private personal repositories showing up in the list of repos. F…
Browse files Browse the repository at this point in the history
…ixes #569

Signed-off-by: Eric Wittmann <[email protected]>
  • Loading branch information
EricWittmann committed Jan 22, 2019
1 parent f307955 commit 45717ab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ public Collection<GitHubRepository> getRepositories(String org) throws GitHubExc
RepositoryService repoService = new RepositoryService(client);
List<Repository> repositories = null;
if (org.equals(userLogin)) {
repositories = repoService.getRepositories(org);
Map<String, String> filters = new HashMap<String, String>();
filters.put("affiliation", "owner");
filters.put("visibility", "all");
repositories = repoService.getRepositories(filters);
} else {
repositories = repoService.getOrgRepositories(org);
}
Expand Down

0 comments on commit 45717ab

Please sign in to comment.