Interface AutoApproveOptions

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    AutoApproveOptions.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:43.064Z")
    @Stability(Experimental)
    public interface AutoApproveOptions
    extends software.amazon.jsii.JsiiSerializable
    (experimental) Options for 'AutoApprove'.
    • Method Detail

      • getAllowedUsernames

        @Stability(Experimental)
        @Nullable
        default List<String> getAllowedUsernames()
        (experimental) Only pull requests authored by these Github usernames will be auto-approved.

        Default: ['github-bot']

      • getLabel

        @Stability(Experimental)
        @Nullable
        default String getLabel()
        (experimental) Only pull requests with this label will be auto-approved.

        Default: 'auto-approve'

      • getRunsOn

        @Stability(Experimental)
        @Nullable
        default List<String> getRunsOn()
        (experimental) Github Runner selection labels.

        Default: ["ubuntu-latest"]

      • getRunsOnGroup

        @Stability(Experimental)
        @Nullable
        default GroupRunnerOptions getRunsOnGroup()
        (experimental) Github Runner Group selection options.
      • getSecret

        @Stability(Experimental)
        @Nullable
        default String getSecret()
        (experimental) A GitHub secret name which contains a GitHub Access Token with write permissions for the pull_request scope.

        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"