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 955e989

Browse filesBrowse files
committed
Fix fields of GHRepository
1 parent fa3d088 commit 955e989
Copy full SHA for 955e989

File tree

Expand file treeCollapse file tree

1 file changed

+14
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-10
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
+14-10Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ public class GHRepository extends GHObject {
7575

7676
private String git_url, ssh_url, clone_url, svn_url, mirror_url;
7777
private GHUser owner; // not fully populated. beware.
78-
private boolean has_issues, has_wiki, fork, has_downloads;
78+
private boolean has_issues, has_wiki, fork, has_downloads, has_pages;
7979
@JsonProperty("private")
8080
private boolean _private;
81-
private int watchers,forks,open_issues,size,network_count,subscribers_count;
81+
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
8282
private String pushed_at;
8383
private Map<Integer,GHMilestone> milestones = new HashMap<Integer, GHMilestone>();
8484

@@ -358,8 +358,12 @@ 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 getForks() {
362-
return forks;
361+
public int getForksCount() {
362+
return forks_count;
363+
}
364+
365+
public int getStargazersCount() {
366+
return stargazers_count;
363367
}
364368

365369
public boolean isPrivate() {
@@ -370,16 +374,16 @@ public boolean hasDownloads() {
370374
return has_downloads;
371375
}
372376

373-
public int getWatchers() {
374-
return watchers;
377+
public boolean hasPages() {
378+
return has_pages;
375379
}
376380

377-
public int getOpenIssueCount() {
378-
return open_issues;
381+
public int getWatchersCount() {
382+
return watchers_count;
379383
}
380384

381-
public int getNetworkCount() {
382-
return network_count;
385+
public int getOpenIssueCount() {
386+
return open_issues_count;
383387
}
384388

385389
public int getSubscribersCount() {

0 commit comments

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