@Stability(value=Experimental) public static final class AutoApprove.Builder extends Object implements software.amazon.jsii.Builder<AutoApprove>
AutoApprove.| Modifier and Type | Method and Description |
|---|---|
AutoApprove.Builder |
allowedUsernames(List<String> allowedUsernames)
(experimental) Only pull requests authored by these Github usernames will be auto-approved.
|
AutoApprove |
build() |
static AutoApprove.Builder |
create(GitHub github) |
AutoApprove.Builder |
label(String label)
(experimental) Only pull requests with this label will be auto-approved.
|
AutoApprove.Builder |
runsOn(List<String> runsOn)
(experimental) Github Runner selection labels.
|
AutoApprove.Builder |
secret(String secret)
(experimental) A GitHub secret name which contains a GitHub Access Token with write permissions for the `pull_request` scope.
|
@Stability(value=Experimental) public static AutoApprove.Builder create(GitHub github)
github - This parameter is required.AutoApprove.Builder.@Stability(value=Experimental) public AutoApprove.Builder secret(String secret)
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.secret - A GitHub secret name which contains a GitHub Access Token with write permissions for the `pull_request` scope. This parameter is required.this@Stability(value=Experimental) public AutoApprove.Builder allowedUsernames(List<String> allowedUsernames)
Default: ['github-bot']
allowedUsernames - Only pull requests authored by these Github usernames will be auto-approved. This parameter is required.this@Stability(value=Experimental) public AutoApprove.Builder label(String label)
Default: 'auto-approve'
label - Only pull requests with this label will be auto-approved. This parameter is required.this@Stability(value=Experimental) public AutoApprove.Builder runsOn(List<String> runsOn)
Default: ["ubuntu-latest"]
runsOn - Github Runner selection labels. This parameter is required.this@Stability(value=Experimental) public AutoApprove build()
build in interface software.amazon.jsii.Builder<AutoApprove>Copyright © 2021. All rights reserved.