fixed indent, rename to getLastestRelease

This commit is contained in:
kamontat
2017-02-20 09:36:28 +07:00
parent 166e26d101
commit fd859815b0

View File

@@ -299,9 +299,9 @@ public class GHRepository extends GHObject {
return listReleases().asList();
}
public GHRelease latestRelease() throws IOException {
public GHRelease getLatestRelease() throws IOException {
return root.retrieve().to(getApiTailUrl("releases/latest"), GHRelease.class).wrap(this);
}
}
public PagedIterable<GHRelease> listReleases() throws IOException {
return new PagedIterable<GHRelease>() {