Package com.jcabi.github
Class Release.Smart
java.lang.Object
com.jcabi.github.Release.Smart
- All Implemented Interfaces:
JsonPatchable,JsonReadable,Release
- Enclosing interface:
- Release
Smart release.
- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Release
Release.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassets()Get all release assets of this release.Get release assets url.body()Get release body.voidChange its body.Get release target commitish.voidChange its target commitish.Get release creation date.voiddelete()Deletes a release.booleandraft()Is release draft.voiddraft(boolean draft) Change its status.booleanhasBody()Has release body.booleanhasName()Does this release have a name?booleanhasTag()Has release tag?htmlUrl()Get release html url.jakarta.json.JsonObjectjson()Describe it in a JSON object.name()Get release name.voidChange its name.intnumber()Release id.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.booleanIs it prerelease.voidprerelease(boolean pre) Change its prerelease.Get release publication date.repo()Owner of them.tag()Get release tag name.voidChange its tag name.Get release upload url.url()Get release url.
-
Constructor Details
-
Smart
Public CTOR.- Parameters:
original- Original release
-
-
Method Details
-
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
patch
Description copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
repo
Description copied from interface:ReleaseOwner of them. -
number
public int number()Description copied from interface:ReleaseRelease id. -
assets
Description copied from interface:ReleaseGet all release assets of this release. -
url
Get release url.- Returns:
- Release url
- Throws:
IOException- If there is any I/O problem
-
htmlUrl
Get release html url.- Returns:
- Release html url
- Throws:
IOException- If there is any I/O problem
-
assetsUrl
Get release assets url.- Returns:
- Release assets url
- Throws:
IOException- If there is any I/O problem
-
uploadUrl
Get release upload url.- Returns:
- Release upload url
- Throws:
IOException- If there is any I/O problem
-
tag
Get release tag name.- Returns:
- The release tag name
- Throws:
IOException- If there is any I/O problem
-
hasTag
Has release tag?- Returns:
- TRUE if tag exists
- Throws:
IOException- If there is any I/O problem- Since:
- 0.21
-
tag
Change its tag name.- Parameters:
text- Tag name- Throws:
IOException- If there is any I/O problem
-
commitish
Get release target commitish.- Returns:
- Release target commitish value
- Throws:
IOException- If there is any I/O problem
-
commitish
Change its target commitish.- Parameters:
text- Target commitish.- Throws:
IOException- If there is any I/O problem
-
hasName
Does this release have a name?- Returns:
- Whether this release has a name
- Throws:
IOException- If there is any I/O problem
-
name
Get release name. Note that there may not be one, so make sure to check withhasName()first.- Returns:
- Release name
- Throws:
IOException- If there is any I/O problem
-
name
Change its name.- Parameters:
text- Name of release.- Throws:
IOException- If there is any I/O problem
-
hasBody
Has release body.- Returns:
- TRUE if release body exists
- Throws:
IOException- If there is any I/O problem
-
body
Get release body.- Returns:
- Release body
- Throws:
IOException- If there is any I/O problem
-
body
Change its body.- Parameters:
text- Text describing the contents of the tag- Throws:
IOException- If there is any I/O problem
-
createdAt
Get release creation date.- Returns:
- Release creation date
- Throws:
IOException- If there is any I/O problem
-
publishedAt
Get release publication date.- Returns:
- Release publication date
- Throws:
IOException- If there is any I/O problem
-
draft
Is release draft.- Returns:
- Returns true if it's draft
- Throws:
IOException- If there is any I/O problem
-
draft
Change its status.- Parameters:
draft- True makes the release a draft.- Throws:
IOException- If there is any I/O problem
-
prerelease
Is it prerelease.- Returns:
- Returns true if it's prerelease
- Throws:
IOException- If there is any I/O problem
-
prerelease
Change its prerelease.- Parameters:
pre- True to identify the release as a prerelease.- Throws:
IOException- If there is any I/O problem
-
delete
Description copied from interface:ReleaseDeletes a release.- Specified by:
deletein interfaceRelease- Throws:
IOException- If any I/O problems occur.
-