mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Restoring backward compatibility of names
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user