public class GHBranch
extends java.lang.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.
|
void |
enableProtection(EnforcementLevel level,
java.util.Collection<java.lang.String> contexts)
Enables branch protection to control what commit statuses are required to push.
|
void |
enableProtection(EnforcementLevel level,
java.lang.String... contexts) |
java.lang.String |
getName() |
GHRepository |
getOwner()
Repository that this branch is in.
|
GitHub |
getRoot() |
java.lang.String |
getSHA1()
The commit that this branch currently points to.
|
java.lang.String |
toString() |
public GitHub getRoot()
public GHRepository getOwner()
public java.lang.String getName()
public java.lang.String getSHA1()
public void disableProtection()
throws java.io.IOException
java.io.IOExceptionpublic void enableProtection(EnforcementLevel level, java.util.Collection<java.lang.String> contexts) throws java.io.IOException
java.io.IOExceptionGHCommitStatus.getContext()public void enableProtection(EnforcementLevel level, java.lang.String... contexts) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016. All Rights Reserved.