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
| Member | Description |
|---|---|
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_CLOSED | Closing a Pull Request. |
PULL_REQUEST_MERGED | Merging a Pull Request. |
PULL_REQUEST_REOPENED | Re-opening a previously closed Pull Request. |
RELEASED | A release is created in the repository. |
PRERELEASED | A prerelease is created in the repository. |
WORKFLOW_JOB_QUEUED | A workflow job is queued in the repository. |