Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitHub github = GitHub.connectAnonymously();
GHRepository repository = github.getRepository("sass/node-sass");
PagedIterable<GHRelease> listReleases = repository.listReleases();
for(GHRelease release : listReleases.asList()) {
List<GHAsset> assets = release.getAssets();
for(GHAsset asset : assets.subList(0, 10)) {
System.out.println(asset.getLabel());
System.out.println(asset.getName());
System.out.println(asset.getBrowserDownloadUrl());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.