mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 00:11:22 +00:00
Renamed getMasterBranch to getDefaultBranch
The new set method can be simply renamed without the backward compatibility version since it's new
This commit is contained in:
@@ -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,9 +502,7 @@ 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.
|
||||
public void setDefaultBranch(String value) throws IOException {
|
||||
edit("default_branch", value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user