enum EventAction
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.EventAction |
Java | software.amazon.awscdk.services.codebuild.EventAction |
Python | aws_cdk.aws_codebuild.EventAction |
TypeScript (source) | @aws-cdk/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('master')
.andCommitMessageIs('the commit message'),
], // 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_MERGED | Merging a Pull Request. |
PULL_REQUEST_REOPENED | Re-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.