Restoring backward compatibility of names

This commit is contained in:
Kohsuke Kawaguchi
2016-11-16 18:18:45 -08:00
parent 955e9899af
commit def3a28fb5

View File

@@ -358,7 +358,7 @@ public class GHRepository extends GHObject {
* 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;
}
@@ -378,7 +378,7 @@ public class GHRepository extends GHObject {
return has_pages;
}
public int getWatchersCount() {
public int getWatchers() {
return watchers_count;
}
@@ -386,6 +386,15 @@ public class GHRepository extends GHObject {
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;
}