Skip to content

Commit

Permalink
Merge pull request #190
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Jul 17, 2015
2 parents 87d1256 + eb9551d commit cb22488
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit cb22488

Please sign in to comment.