Skip to content

Commit

Permalink
Update GHRepository.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jberglund-BSFT authored Oct 7, 2019
1 parent a42024b commit 88b006e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ 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, has_pages, archived;

private boolean allow_squash_merge;
private boolean allow_merge_commit;
private boolean allow_rebase_merge;

@JsonProperty("private")
private boolean _private;
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
Expand Down Expand Up @@ -401,6 +406,18 @@ public boolean isFork() {
public boolean isArchived() {
return archived;
}

public boolean isAllowSquashMerge() {
return allow_squash_merge;
}

public boolean isAllowMergeCommit() {
return allow_merge_commit;
}

public boolean isAllowRebaseMerge() {
return allow_rebase_merge;
}

/**
* Returns the number of all forks of this repository.
Expand Down

0 comments on commit 88b006e

Please sign in to comment.