public class GHReleaseUpdater extends Object
GHRelease.GHRelease#update()| Modifier and Type | Method and Description |
|---|---|
GHReleaseUpdater |
body(String body)
Body gh release updater.
|
GHReleaseUpdater |
commitish(String commitish)
Specifies the commitish value that determines where the Git tag is created from.
|
GHReleaseUpdater |
draft(boolean draft)
Optional.
|
GHReleaseUpdater |
name(String name)
Name gh release updater.
|
GHReleaseUpdater |
prerelease(boolean prerelease)
Optional
|
GHReleaseUpdater |
tag(String tag)
Tag gh release updater.
|
GHRelease |
update()
Update gh release.
|
public GHReleaseUpdater tag(String tag)
tag - the tagpublic GHReleaseUpdater body(String body)
body - The release notes body.public GHReleaseUpdater commitish(String commitish)
commitish - Defaults to the repository’s default branch (usually "master"). Unused if the Git tag already exists.public GHReleaseUpdater draft(boolean draft)
draft - true to create a draft (unpublished) release, false to create a published one. Default
is false.public GHReleaseUpdater name(String name)
name - the name of the releasepublic GHReleaseUpdater prerelease(boolean prerelease)
prerelease - true to identify the release as a prerelease. false to identify the release as a full
release. Default is false.public GHRelease update() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.