Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit def3a28

Browse filesBrowse files
committed
Restoring backward compatibility of names
1 parent 955e989 commit def3a28
Copy full SHA for def3a28

File tree

Expand file treeCollapse file tree

1 file changed

+11
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-2
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+11-2Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public boolean isFork() {
358358
* Returns the number of all forks of this repository.
359359
* This not only counts direct forks, but also forks of forks, and so on.
360360
*/
361-
public int getForksCount() {
361+
public int getForks() {
362362
return forks_count;
363363
}
364364

@@ -378,14 +378,23 @@ public boolean hasPages() {
378378
return has_pages;
379379
}
380380

381-
public int getWatchersCount() {
381+
public int getWatchers() {
382382
return watchers_count;
383383
}
384384

385385
public int getOpenIssueCount() {
386386
return open_issues_count;
387387
}
388388

389+
/**
390+
* @deprecated
391+
* This no longer exists in the official API documentation.
392+
* Use {@link #getForks()}
393+
*/
394+
public int getNetworkCount() {
395+
return forks_count;
396+
}
397+
389398
public int getSubscribersCount() {
390399
return subscribers_count;
391400
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.