Skip to content

Commit

Permalink
Merge pull request #304
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Nov 17, 2016
2 parents d1378a0 + def3a28 commit 1c162c6
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public class GHRepository extends GHObject {

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

Expand Down Expand Up @@ -363,7 +363,11 @@ public boolean isFork() {
* This not only counts direct forks, but also forks of forks, and so on.
*/
public int getForks() {
return forks;
return forks_count;
}

public int getStargazersCount() {
return stargazers_count;
}

public boolean isPrivate() {
Expand All @@ -374,16 +378,25 @@ public boolean hasDownloads() {
return has_downloads;
}

public boolean hasPages() {
return has_pages;
}

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

public int getOpenIssueCount() {
return open_issues;
return open_issues_count;
}

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

public int getSubscribersCount() {
Expand Down

0 comments on commit 1c162c6

Please sign in to comment.