Skip to content
v2.273.0

EventAction Enum ​

The types of webhook event actions.

Example ​

ts
const gitHubSource = codebuild.Source.gitHub({
  owner: 'awslabs',
  repo: 'aws-cdk', // optional, default: undefined if unspecified will create organization webhook
  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'),
    codebuild.FilterGroup
      .inEventOf(codebuild.EventAction.RELEASED)
      .andBranchIs('main')
  ], // optional, by default all pushes and Pull Requests will trigger a build
});

Members ​

MemberDescription
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_CLOSEDClosing a Pull Request.
PULL_REQUEST_MERGEDMerging a Pull Request.
PULL_REQUEST_REOPENEDRe-opening a previously closed Pull Request.
RELEASEDA release is created in the repository.
PRERELEASEDA prerelease is created in the repository.
WORKFLOW_JOB_QUEUEDA workflow job is queued in the repository.