Merge pull request #190

This commit is contained in:
Kohsuke Kawaguchi
2015-07-17 13:43:01 +03:00

View File

@@ -364,6 +364,14 @@ public class GHRepository extends GHObject {
* @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 class GHRepository extends GHObject {
edit("homepage",value);
}
public void setDefaultBranch(String value) throws IOException {
edit("default_branch", value);
}
/**
* Deletes this repository.
*/