Skip to content

Commit

Permalink
Merge pull request #215 from daniel-beck/fix-pagination
Browse files Browse the repository at this point in the history
Work around pagination bug in github-api
  • Loading branch information
daniel-beck authored Jul 17, 2018
2 parents 76eb90d + c1f6011 commit 6c6db63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public int compare(String o1, String o2) {
return o1.compareToIgnoreCase(o2);
}
});
for (GHRepository repo : github.getOrganization("jenkinsci").getRepositories().values()) {
repoNames.add(StringUtils.stripEnd(repo.getHttpTransportUrl(), ".git"));
for (GHRepository repo : github.getOrganization("jenkinsci").listRepositories().withPageSize(100)) {
repoNames.add(repo.getHtmlUrl().toString());
}
}
} catch (IOException e) {
Expand Down

0 comments on commit 6c6db63

Please sign in to comment.