public class GHReleaseBuilder
extends java.lang.Object
GHReleaseGHRepository.createRelease(String)| Constructor and Description |
|---|
GHReleaseBuilder(GHRepository ghRepository,
java.lang.String tag) |
| Modifier and Type | Method and Description |
|---|---|
GHReleaseBuilder |
body(java.lang.String body) |
GHReleaseBuilder |
commitish(java.lang.String commitish)
Specifies the commitish value that determines where the Git tag is created from.
|
GHRelease |
create() |
GHReleaseBuilder |
draft(boolean draft)
Optional.
|
GHReleaseBuilder |
name(java.lang.String name) |
GHReleaseBuilder |
prerelease(boolean prerelease)
Optional
|
public GHReleaseBuilder(GHRepository ghRepository, java.lang.String tag)
public GHReleaseBuilder body(java.lang.String body)
body - The release notes body.public GHReleaseBuilder commitish(java.lang.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(java.lang.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 java.io.IOException
java.io.IOExceptionCopyright © 2016. All Rights Reserved.