Class EventAction
The types of webhook event actions.
Inheritance
System.Object
EventAction
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class EventAction : Enum
Syntax (vb)
Public NotInheritable Class EventAction
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var gitHubSource = Source.GitHub(new GitHubSourceProps {
Owner = "awslabs",
Repo = "aws-cdk",
Webhook = true, // optional, default: true if `webhookFilters` were provided, false otherwise
WebhookTriggersBatchBuild = true, // optional, default is false
WebhookFilters = new [] { FilterGroup.InEventOf(EventAction.PUSH).AndBranchIs("main").AndCommitMessageIs("the commit message") }
});
Synopsis
Fields
PULL_REQUEST_CREATED | Creating a Pull Request. |
PULL_REQUEST_MERGED | Merging a Pull Request. |
PULL_REQUEST_REOPENED | Re-opening a previously closed Pull Request. |
PULL_REQUEST_UPDATED | Updating a Pull Request. |
PUSH | A push (of a branch, or a tag) to the repository. |
value__ |
Fields
PULL_REQUEST_CREATED
Creating a Pull Request.
public const EventAction PULL_REQUEST_CREATED
Field Value
Type | Description |
---|---|
EventAction |
PULL_REQUEST_MERGED
Merging a Pull Request.
public const EventAction PULL_REQUEST_MERGED
Field Value
Type | Description |
---|---|
EventAction |
PULL_REQUEST_REOPENED
Re-opening a previously closed Pull Request.
public const EventAction PULL_REQUEST_REOPENED
Field Value
Type | Description |
---|---|
EventAction |
Remarks
Note that this event is only supported for GitHub and GitHubEnterprise sources.
PULL_REQUEST_UPDATED
Updating a Pull Request.
public const EventAction PULL_REQUEST_UPDATED
Field Value
Type | Description |
---|---|
EventAction |
PUSH
A push (of a branch, or a tag) to the repository.
public const EventAction PUSH
Field Value
Type | Description |
---|---|
EventAction |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |