public class GHBranch extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHBranch.Commit |
| Constructor and Description |
|---|
GHBranch() |
| Modifier and Type | Method and Description |
|---|---|
void |
disableProtection()
Disables branch protection and allows anyone with push access to push changes.
|
GHBranchProtectionBuilder |
enableProtection()
Deprecated.
|
void |
enableProtection(EnforcementLevel level,
Collection<String> contexts)
Deprecated.
|
String |
getName() |
GHRepository |
getOwner()
Repository that this branch is in.
|
GHBranchProtection |
getProtection() |
URL |
getProtectionUrl()
Deprecated.
|
GitHub |
getRoot() |
String |
getSHA1()
The commit that this branch currently points to.
|
boolean |
isProtected()
Deprecated.
|
String |
toString() |
public GitHub getRoot()
public GHRepository getOwner()
public String getName()
@Preview @Deprecated public boolean isProtected()
@Preview @Deprecated public URL getProtectionUrl()
public GHBranchProtection getProtection() throws IOException
IOExceptionpublic String getSHA1()
public void disableProtection()
throws IOException
IOException@Preview @Deprecated public GHBranchProtectionBuilder enableProtection()
GHCommitStatus.getContext()@Deprecated public void enableProtection(EnforcementLevel level, Collection<String> contexts) throws IOException
IOExceptionCopyright © 2018. All rights reserved.