Skip to content

Commit

Permalink
allow default branch to be set
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Schoening committed May 9, 2015
1 parent b976e0e commit e4de09c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ public void setHomepage(String value) throws IOException {
edit("homepage",value);
}

public void setMasterBranch(String value) throws IOException {
// This method might be more aptly named setDefaultBranch,
// but we'll use setMasterBranch for consistency with the existing getMasterBranch.
edit("default_branch", value);
}

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

0 comments on commit e4de09c

Please sign in to comment.