public class GHReleaseUpdater extends Object
GHRelease.GHRelease.update()| Modifier and Type | Method and Description |
|---|---|
GHReleaseUpdater |
body(String body) |
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) |
GHReleaseUpdater |
prerelease(boolean prerelease)
Optional
|
GHReleaseUpdater |
tag(String tag) |
GHRelease |
update() |
public GHReleaseUpdater tag(String tag)
public 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
IOExceptionCopyright © 2018. All rights reserved.