public enum StandardRepositoryHookTrigger extends Enum<StandardRepositoryHookTrigger> implements RepositoryHookTrigger
repository-hook RepositoryHookRequests.| Enum Constant and Description |
|---|
BRANCH_CREATE |
BRANCH_DELETE |
FILE_EDIT |
MERGE
Invoked when
ScmExtendedCommandFactory.merge(MergeCommandParameters) is called. |
PULL_REQUEST_MERGE |
REPO_PUSH |
TAG_CREATE |
TAG_DELETE |
UNKNOWN
An unclassified / not recognized trigger
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<StandardRepositoryHookTrigger> |
fromId(String id) |
String |
getId() |
boolean |
isAbortOnFirstVeto() |
static StandardRepositoryHookTrigger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardRepositoryHookTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardRepositoryHookTrigger BRANCH_CREATE
BranchCreationHookRequestpublic static final StandardRepositoryHookTrigger BRANCH_DELETE
BranchDeletionHookRequestpublic static final StandardRepositoryHookTrigger FILE_EDIT
FileEditHookRequestpublic static final StandardRepositoryHookTrigger MERGE
ScmExtendedCommandFactory.merge(MergeCommandParameters) is called. Note that this is a
low-level SCM operation and should not generally be intercepted.MergeHookRequestpublic static final StandardRepositoryHookTrigger PULL_REQUEST_MERGE
PullRequestMergeHookRequestpublic static final StandardRepositoryHookTrigger REPO_PUSH
RepositoryPushHookRequestpublic static final StandardRepositoryHookTrigger TAG_CREATE
TagCreationHookRequestpublic static final StandardRepositoryHookTrigger TAG_DELETE
TagDeletionHookRequestpublic static final StandardRepositoryHookTrigger UNKNOWN
public static StandardRepositoryHookTrigger[] values()
for (StandardRepositoryHookTrigger c : StandardRepositoryHookTrigger.values()) System.out.println(c);
public static StandardRepositoryHookTrigger 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 null@Nonnull public static Optional<StandardRepositoryHookTrigger> fromId(@Nullable String id)
@Nonnull public String getId()
getId in interface RepositoryHookTriggerpublic boolean isAbortOnFirstVeto()
isAbortOnFirstVeto in interface RepositoryHookTriggerRepositoryHookService.preUpdate(RepositoryHookRequest) invocation should stop calling
other repository-hook modules after the first veto. Return false if all hooks need to be
called even after one hook vetoes the request.Copyright © 2019 Atlassian. All rights reserved.