enum EventAction
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.EventAction |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#EventAction |
Java | software.amazon.awscdk.services.codebuild.EventAction |
Python | aws_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', // 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
Name | 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. |
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.
Note that this event is only supported for GitHub and GitHubEnterprise sources.
RELEASED
A release is created in the repository.
Works with GitHub only.
PRERELEASED
A prerelease is created in the repository.
Works with GitHub only.
WORKFLOW_JOB_QUEUED
A workflow job is queued in the repository.
Works with GitHub only.