Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fields of GHRepository #304

Merged
merged 1 commit into from
Nov 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 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 @@ -358,8 +358,12 @@ public boolean isFork() {
* 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 getForks() {
return forks;
public int getForksCount() {
return forks_count;
}

public int getStargazersCount() {
return stargazers_count;
}

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

public int getWatchers() {
return watchers;
public boolean hasPages() {
return has_pages;
}

public int getOpenIssueCount() {
return open_issues;
public int getWatchersCount() {
return watchers_count;
}

public int getNetworkCount() {
return network_count;
public int getOpenIssueCount() {
return open_issues_count;
}

public int getSubscribersCount() {
Expand Down