Package io.github.cdklabs.projen.github
Class AutoApproveOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.github.AutoApproveOptions.Jsii$Proxy
-
- All Implemented Interfaces:
AutoApproveOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- AutoApproveOptions
@Stability(Experimental) @Internal public static final class AutoApproveOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AutoApproveOptions
An implementation forAutoApproveOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.github.AutoApproveOptions
AutoApproveOptions.Builder, AutoApproveOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(AutoApproveOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theAutoApproveOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)List<String>getAllowedUsernames()(experimental) Only pull requests authored by these Github usernames will be auto-approved.StringgetLabel()(experimental) Only pull requests with this label will be auto-approved.List<String>getRunsOn()(experimental) Github Runner selection labels.GroupRunnerOptionsgetRunsOnGroup()(experimental) Github Runner Group selection options.StringgetSecret()(experimental) A GitHub secret name which contains a GitHub Access Token with write permissions for thepull_requestscope.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(AutoApproveOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theAutoApproveOptions.Builder.
-
-
Method Detail
-
getAllowedUsernames
public final List<String> getAllowedUsernames()
Description copied from interface:AutoApproveOptions(experimental) Only pull requests authored by these Github usernames will be auto-approved.Default: ['github-bot']
- Specified by:
getAllowedUsernamesin interfaceAutoApproveOptions
-
getLabel
public final String getLabel()
Description copied from interface:AutoApproveOptions(experimental) Only pull requests with this label will be auto-approved.Default: 'auto-approve'
- Specified by:
getLabelin interfaceAutoApproveOptions
-
getRunsOn
public final List<String> getRunsOn()
Description copied from interface:AutoApproveOptions(experimental) Github Runner selection labels.Default: ["ubuntu-latest"]
- Specified by:
getRunsOnin interfaceAutoApproveOptions
-
getRunsOnGroup
public final GroupRunnerOptions getRunsOnGroup()
Description copied from interface:AutoApproveOptions(experimental) Github Runner Group selection options.- Specified by:
getRunsOnGroupin interfaceAutoApproveOptions
-
getSecret
public final String getSecret()
Description copied from interface:AutoApproveOptions(experimental) A GitHub secret name which contains a GitHub Access Token with write permissions for thepull_requestscope.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` } * that you would like auto approved, such as when using the `depsUpgrade` property in `NodeProjectOptions`, then you must use a different token here.
Default: "GITHUB_TOKEN"
- Specified by:
getSecretin interfaceAutoApproveOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-