allow default branch to be set

This commit is contained in:
Rob Schoening
2015-05-09 01:05:04 -07:00
parent b976e0ef4e
commit e4de09c55b

View File

@@ -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.
*/