java.lang.Object
org.kohsuke.github.GHReleaseUpdater
Modifies
GHRelease
.- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionBody gh release updater.categoryName
(String categoryName) Optional.Specifies the commitish value that determines where the Git tag is created from.draft
(boolean draft) Optional.Optional.Name gh release updater.prerelease
(boolean prerelease) Optional.Tag gh release updater.update()
Update gh release.
-
Method Details
-
tag
Tag gh release updater.- Parameters:
tag
- the tag- Returns:
- the gh release updater
-
body
Body gh release updater.- Parameters:
body
- The release notes body.- Returns:
- the gh release updater
-
commitish
Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.- Parameters:
commitish
- Defaults to the repository’s default branch (usually "main"). Unused if the Git tag already exists.- Returns:
- the gh release updater
-
draft
Optional.- Parameters:
draft
-true
to create a draft (unpublished) release,false
to create a published one. Default isfalse
.- Returns:
- the gh release updater
-
name
Name gh release updater.- Parameters:
name
- the name of the release- Returns:
- the gh release updater
-
prerelease
Optional.- Parameters:
prerelease
-true
to identify the release as a prerelease.false
to identify the release as a full release. Default isfalse
.- Returns:
- the gh release updater
-
categoryName
Optional.- Parameters:
categoryName
- the category of the discussion to be created for the release. Category should already exist- Returns:
- the gh release builder
-
makeLatest
Optional.- Parameters:
latest
- Whether to make this the latest release. Default isTRUE
- Returns:
- the gh release builder
-
update
Update gh release.- Returns:
- the gh release
- Throws:
IOException
- the io exception
-