diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 84c58641b0..4a6652be30 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -364,6 +364,14 @@ public Date getPushedAt() { * @return * This field is null until the user explicitly configures the master branch. */ + public String getDefaultBranch() { + return default_branch; + } + + /** + * @deprecated + * Renamed to {@link #getDefaultBranch()} + */ public String getMasterBranch() { return default_branch; } @@ -494,6 +502,10 @@ public void setHomepage(String value) throws IOException { edit("homepage",value); } + public void setDefaultBranch(String value) throws IOException { + edit("default_branch", value); + } + /** * Deletes this repository. */