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 4, 2019
1 parent 78abb2e commit a42024b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,19 @@ public void setDefaultBranch(String value) throws IOException {
public void setPrivate(boolean value) throws IOException {
edit("private", Boolean.toString(value));
}


public void allowSquashMerge(boolean value) throws IOException {
edit("allow_squash_merge", Boolean.toString(value));
}

public void allowMergeCommit(boolean value) throws IOException {
edit("allow_merge_commit", Boolean.toString(value));
}

public void allowRebaseMerge(boolean value) throws IOException {
edit("allow_rebase_merge", Boolean.toString(value));
}

/**
* Deletes this repository.
*/
Expand Down

0 comments on commit a42024b

Please sign in to comment.