|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kohsuke.github.GHReleaseBuilder
public class GHReleaseBuilder
Builder pattern for creating a GHRelease
GHRepository.createRelease(String)| Constructor Summary | |
|---|---|
GHReleaseBuilder(GHRepository ghRepository,
String tag)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GHReleaseBuilder(GHRepository ghRepository,
String tag)
| Method Detail |
|---|
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
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||