Skip to content

Commit

Permalink
Restoring backward compatibility of names
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Nov 17, 2016
1 parent 955e989 commit def3a28
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public boolean isFork() {
* Returns the number of all forks of this repository.
* This not only counts direct forks, but also forks of forks, and so on.
*/
public int getForksCount() {
public int getForks() {
return forks_count;
}

Expand All @@ -378,14 +378,23 @@ public boolean hasPages() {
return has_pages;
}

public int getWatchersCount() {
public int getWatchers() {
return watchers_count;
}

public int getOpenIssueCount() {
return open_issues_count;
}

/**
* @deprecated
* This no longer exists in the official API documentation.
* Use {@link #getForks()}
*/
public int getNetworkCount() {
return forks_count;
}

public int getSubscribersCount() {
return subscribers_count;
}
Expand Down

0 comments on commit def3a28

Please sign in to comment.