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()
Deprecated.
|
GHBranchProtectionBuilder |
enableProtection()
Deprecated.
|
void |
enableProtection(EnforcementLevel level,
Collection<String> contexts)
Deprecated.
|
String |
getName() |
GHRepository |
getOwner()
Repository that this branch is in.
|
GHBranchProtection |
getProtection()
Deprecated.
|
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()
@Preview @Deprecated public GHBranchProtection getProtection() throws IOException
IOExceptionpublic String getSHA1()
@Preview @Deprecated 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 © 2017. All rights reserved.