public class GHDeploymentBuilder extends Object
| Constructor and Description |
|---|
GHDeploymentBuilder(GHRepository repo)
Instantiates a new Gh deployment builder.
|
GHDeploymentBuilder(GHRepository repo,
String ref)
Instantiates a new Gh deployment builder.
|
| Modifier and Type | Method and Description |
|---|---|
GHDeploymentBuilder |
autoMerge(boolean autoMerge)
Auto merge gh deployment builder.
|
GHDeployment |
create()
Create gh deployment.
|
GHDeploymentBuilder |
description(String description)
Description gh deployment builder.
|
GHDeploymentBuilder |
environment(String environment)
Environment gh deployment builder.
|
GHDeploymentBuilder |
payload(String payload)
Payload gh deployment builder.
|
GHDeploymentBuilder |
ref(String branch)
Ref gh deployment builder.
|
GHDeploymentBuilder |
requiredContexts(List<String> requiredContexts)
Required contexts gh deployment builder.
|
GHDeploymentBuilder |
task(String task)
Task gh deployment builder.
|
public GHDeploymentBuilder(GHRepository repo)
repo - the repopublic GHDeploymentBuilder(GHRepository repo, String ref)
repo - the reporef - the refpublic GHDeploymentBuilder ref(String branch)
branch - the branchpublic GHDeploymentBuilder task(String task)
task - the taskpublic GHDeploymentBuilder autoMerge(boolean autoMerge)
autoMerge - the auto mergepublic GHDeploymentBuilder requiredContexts(List<String> requiredContexts)
requiredContexts - the required contextspublic GHDeploymentBuilder payload(String payload)
payload - the payloadpublic GHDeploymentBuilder environment(String environment)
environment - the environmentpublic GHDeploymentBuilder description(String description)
description - the descriptionpublic GHDeployment create() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.