@Stability(value=Experimental) public static final class AutoApproveOptions.Builder extends Object implements software.amazon.jsii.Builder<AutoApproveOptions>
AutoApproveOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AutoApproveOptions.Builder |
allowedUsernames(List<String> allowedUsernames)
Sets the value of
AutoApproveOptions.getAllowedUsernames() |
AutoApproveOptions |
build()
Builds the configured instance.
|
AutoApproveOptions.Builder |
label(String label)
Sets the value of
AutoApproveOptions.getLabel() |
AutoApproveOptions.Builder |
runsOn(List<String> runsOn)
Sets the value of
AutoApproveOptions.getRunsOn() |
AutoApproveOptions.Builder |
secret(String secret)
Sets the value of
AutoApproveOptions.getSecret() |
@Stability(value=Experimental) public AutoApproveOptions.Builder secret(String secret)
AutoApproveOptions.getSecret()secret - A GitHub secret name which contains a GitHub Access Token with write permissions for the `pull_request` scope. This parameter is required.
This token is used to approve pull requests.
Github forbids an identity to approve its own pull request.
If your project produces automated pull requests using the Github default token -
{@link https://docs.github.com/en/actions/reference/authentication-in-a-workflow GITHUB_TOKEN }
depsUpgrade property in
NodeProjectOptions, then you must use a different token here.this@Stability(value=Experimental) public AutoApproveOptions.Builder allowedUsernames(List<String> allowedUsernames)
AutoApproveOptions.getAllowedUsernames()allowedUsernames - Only pull requests authored by these Github usernames will be auto-approved.this@Stability(value=Experimental) public AutoApproveOptions.Builder label(String label)
AutoApproveOptions.getLabel()label - Only pull requests with this label will be auto-approved.this@Stability(value=Experimental) public AutoApproveOptions.Builder runsOn(List<String> runsOn)
AutoApproveOptions.getRunsOn()runsOn - Github Runner selection labels.this@Stability(value=Experimental) public AutoApproveOptions build()
build in interface software.amazon.jsii.Builder<AutoApproveOptions>AutoApproveOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.