Skip to content

Commit

Permalink
fixed indent, rename to getLastestRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Feb 20, 2017
1 parent 166e26d commit fd85981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ public List<GHRelease> getReleases() throws IOException {
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>() {
Expand Down

0 comments on commit fd85981

Please sign in to comment.