public class GHReleaseBuilder extends Object
GHReleaseGHRepository#createRelease(String)| Constructor and Description |
|---|
GHReleaseBuilder(GHRepository ghRepository,
String tag)
Instantiates a new Gh release builder.
|
| Modifier and Type | Method and Description |
|---|---|
GHReleaseBuilder |
body(String body)
Body gh release builder.
|
GHReleaseBuilder |
commitish(String commitish)
Specifies the commitish value that determines where the Git tag is created from.
|
GHRelease |
create()
Create gh release.
|
GHReleaseBuilder |
draft(boolean draft)
Optional.
|
GHReleaseBuilder |
name(String name)
Name gh release builder.
|
GHReleaseBuilder |
prerelease(boolean prerelease)
Optional
|
public GHReleaseBuilder(GHRepository ghRepository, String tag)
ghRepository - the gh repositorytag - the tagpublic 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
IOException - the io exceptionCopyright © 2020. All rights reserved.