Navigation Menu

Skip to content

Commit

Permalink
[FIXED JENKINS-45574] When listing repositories of myself, only list …
Browse files Browse the repository at this point in the history
…the repositories that can actually be selected
  • Loading branch information
stephenc committed Jul 17, 2017
1 parent d3ba406 commit 1c1869a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1501,8 +1501,8 @@ public ListBoxModel doFillRepositoryItems(@CheckForNull @AncestorInPath Item con
}
if (myself != null && repoOwner.equalsIgnoreCase(myself.getLogin())) {
Set<String> result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
for (String name : myself.getAllRepositories().keySet()) {
result.add(name);
for (GHRepository repo : myself.listRepositories(100, GHMyself.RepositoryListFilter.OWNER)) {
result.add(repo.getName());
}
return nameAndValueModel(result);
}
Expand Down

0 comments on commit 1c1869a

Please sign in to comment.