org.kohsuke.github
Class GHRelease
java.lang.Object
org.kohsuke.github.GHRelease
public class GHRelease
- extends Object
Release in a github repository.
- See Also:
GHRepository.getReleases(),
GHRepository.createRelease(String)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GHRelease
public GHRelease()
getAssetsUrl
public String getAssetsUrl()
setAssetsUrl
public void setAssetsUrl(String assets_url)
getBody
public String getBody()
setBody
public void setBody(String body)
getCreatedAt
public Date getCreatedAt()
setCreatedAt
public void setCreatedAt(Date created_at)
isDraft
public boolean isDraft()
setDraft
public void setDraft(boolean draft)
getHtmlUrl
public String getHtmlUrl()
setHtmlUrl
public void setHtmlUrl(String html_url)
getId
public long getId()
setId
public void setId(long id)
getName
public String getName()
setName
public void setName(String name)
getOwner
public GHRepository getOwner()
setOwner
public void setOwner(GHRepository owner)
isPrerelease
public boolean isPrerelease()
setPrerelease
public void setPrerelease(boolean prerelease)
getPublished_at
public Date getPublished_at()
setPublished_at
public void setPublished_at(Date published_at)
getRoot
public GitHub getRoot()
setRoot
public void setRoot(GitHub root)
getTagName
public String getTagName()
setTagName
public void setTagName(String tag_name)
getTargetCommitish
public String getTargetCommitish()
setTargetCommitish
public void setTargetCommitish(String target_commitish)
getUploadUrl
public String getUploadUrl()
setUploadUrl
public void setUploadUrl(String upload_url)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
getZipballUrl
public String getZipballUrl()
setZipballUrl
public void setZipballUrl(String zipballUrl)
getTarballUrl
public String getTarballUrl()
setTarballUrl
public void setTarballUrl(String tarballUrl)
uploadAsset
public GHAsset uploadAsset(File file,
String contentType)
throws IOException
- Because github relies on SNI (http://en.wikipedia.org/wiki/Server_Name_Indication) this method will only work on
Java 7 or greater. Options for fixing this for earlier JVMs can be found here
http://stackoverflow.com/questions/12361090/server-name-indication-sni-on-java but involve more complicated
handling of the HTTP requests to github's API.
- Throws:
IOException
getAssets
public List<GHAsset> getAssets()
throws IOException
- Throws:
IOException
delete
public void delete()
throws IOException
- Deletes this release.
- Throws:
IOException
Copyright © 2014. All rights reserved.