public class GHRelease extends GHObject
created_at, id, updated_at, url| Constructor and Description |
|---|
GHRelease() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this release.
|
List<GHAsset> |
getAssets() |
String |
getAssetsUrl() |
String |
getBody() |
URL |
getHtmlUrl()
URL of this object for humans, which renders some HTML.
|
String |
getName() |
GHRepository |
getOwner() |
Date |
getPublished_at() |
GitHub |
getRoot() |
String |
getTagName() |
String |
getTarballUrl() |
String |
getTargetCommitish() |
String |
getUploadUrl() |
String |
getZipballUrl() |
boolean |
isDraft() |
boolean |
isPrerelease() |
GHRelease |
setDraft(boolean draft) |
void |
setName(String name) |
void |
setOwner(GHRepository owner) |
GHAsset |
uploadAsset(File file,
String contentType)
Because github relies on SNI (http://en.wikipedia.org/wiki/Server_Name_Indication) this method will only work on
Java 7 or greater.
|
getCreatedAt, getId, getUpdatedAt, getUrlpublic String getAssetsUrl()
public String getBody()
public boolean isDraft()
public GHRelease setDraft(boolean draft) throws IOException
IOExceptionpublic URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic String getName()
public void setName(String name)
public GHRepository getOwner()
public void setOwner(GHRepository owner)
public boolean isPrerelease()
public Date getPublished_at()
public GitHub getRoot()
public String getTagName()
public String getTargetCommitish()
public String getUploadUrl()
public String getZipballUrl()
public String getTarballUrl()
public GHAsset uploadAsset(File file, String contentType) throws IOException
IOExceptionpublic List<GHAsset> getAssets() throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.