From e4de09c55b516c41b2c7e596f23e23c4bf36a8ab Mon Sep 17 00:00:00 2001 From: Rob Schoening Date: Sat, 9 May 2015 01:05:04 -0700 Subject: [PATCH] allow default branch to be set --- src/main/java/org/kohsuke/github/GHRepository.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index e4459e84d6..5a7550ea2c 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -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. */