public class GHReleaseBuilder extends Object
GHReleaseGHRepository.createRelease(String)| Constructor and Description |
|---|
GHReleaseBuilder(GHRepository ghRepository,
String tag) |
| Modifier and Type | Method and Description |
|---|---|
GHReleaseBuilder |
body(String body) |
GHReleaseBuilder |
commitish(String commitish)
Specifies the commitish value that determines where the Git tag is created from.
|
GHRelease |
create() |
GHReleaseBuilder |
draft(boolean draft)
Optional.
|
GHReleaseBuilder |
name(String name) |
GHReleaseBuilder |
prerelease(boolean prerelease)
Optional
|
public GHReleaseBuilder(GHRepository ghRepository, String tag)
public GHReleaseBuilder body(String body)
body - The release notes body.public GHReleaseBuilder commitish(String commitish)
commitish - Defaults to the repository’s default branch (usually "master"). Unused if the Git tag
already exists.public GHReleaseBuilder draft(boolean draft)
draft - true to create a draft (unpublished) release, false to create a published one.
Default is false.public GHReleaseBuilder name(String name)
name - the name of the releasepublic GHReleaseBuilder 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 create() throws IOException
IOExceptionCopyright © 2017. All rights reserved.