diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index e4459e84d..5a7550ea2 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -494,6 +494,12 @@ public class GHRepository extends GHObject { 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. */