aws-cdk-lib.aws_codebuild.EventAction

enum EventAction

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.EventAction
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#EventAction
Javasoftware.amazon.awscdk.services.codebuild.EventAction
Pythonaws_cdk.aws_codebuild.EventAction
TypeScript (source)aws-cdk-lib » aws_codebuild » EventAction

The types of webhook event actions.

Example

const gitHubSource = codebuild.Source.gitHub({
  owner: 'awslabs',
  repo: 'aws-cdk',
  webhook: true, // optional, default: true if `webhookFilters` were provided, false otherwise
  webhookTriggersBatchBuild: true, // optional, default is false
  webhookFilters: [
    codebuild.FilterGroup
      .inEventOf(codebuild.EventAction.PUSH)
      .andBranchIs('main')
      .andCommitMessageIs('the commit message'),
  ], // optional, by default all pushes and Pull Requests will trigger a build
});

Members

NameDescription
PUSHA push (of a branch, or a tag) to the repository.
PULL_REQUEST_CREATEDCreating a Pull Request.
PULL_REQUEST_UPDATEDUpdating a Pull Request.
PULL_REQUEST_MERGEDMerging a Pull Request.
PULL_REQUEST_REOPENEDRe-opening a previously closed Pull Request.

PUSH

A push (of a branch, or a tag) to the repository.


PULL_REQUEST_CREATED

Creating a Pull Request.


PULL_REQUEST_UPDATED

Updating a Pull Request.


PULL_REQUEST_MERGED

Merging a Pull Request.


PULL_REQUEST_REOPENED

Re-opening a previously closed Pull Request.

Note that this event is only supported for GitHub and GitHubEnterprise sources.