mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 15:50:52 +00:00
allow default branch to be set
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user