public class GHRef extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHRef.GHObject |
| Constructor and Description |
|---|
GHRef() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this ref from the repository using the GitHub API.
|
GHRef.GHObject |
getObject()
The object that this ref points to.
|
String |
getRef()
Name of the ref, such as "refs/tags/abc"
|
URL |
getUrl()
The API URL of this tag, such as https://api.github.com/repos/jenkinsci/jenkins/git/refs/tags/1.312
|
void |
updateTo(String sha)
Updates this ref to the specified commit.
|
void |
updateTo(String sha,
Boolean force)
Updates this ref to the specified commit.
|
public String getRef()
public URL getUrl()
public GHRef.GHObject getObject()
public void updateTo(String sha) throws IOException
sha - The SHA1 value to set this reference toIOExceptionpublic void updateTo(String sha, Boolean force) throws IOException
sha - The SHA1 value to set this reference toforce - Whether or not to force this ref update.IOExceptionpublic void delete()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.