@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.332Z") @Stability(value=Stable) public enum EventAction extends Enum<EventAction>
Example:
ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()
.owner("awslabs")
.repo("aws-cdk")
.webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise
.webhookTriggersBatchBuild(true) // optional, default is false
.webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs("main").andCommitMessageIs("the commit message")))
.build());
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static EventAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final EventAction PUSH
@Stability(value=Stable) public static final EventAction PULL_REQUEST_CREATED
@Stability(value=Stable) public static final EventAction PULL_REQUEST_UPDATED
@Stability(value=Stable) public static final EventAction PULL_REQUEST_MERGED
@Stability(value=Stable) public static final EventAction PULL_REQUEST_REOPENED
Note that this event is only supported for GitHub and GitHubEnterprise sources.
public static EventAction[] values()
for (EventAction c : EventAction.values()) System.out.println(c);
public static EventAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.