public enum StandardRepositoryHookTrigger extends Enum<StandardRepositoryHookTrigger> implements RepositoryHookTrigger
repository-hook
RepositoryHookRequest
s.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
BranchCreationHookRequest
public static final StandardRepositoryHookTrigger BRANCH_DELETE
BranchDeletionHookRequest
public static final StandardRepositoryHookTrigger FILE_EDIT
FileEditHookRequest
public static final StandardRepositoryHookTrigger MERGE
ScmExtendedCommandFactory.merge(MergeCommandParameters)
is called. Note that this is a
low-level SCM operation and should not generally be intercepted.MergeHookRequest
public static final StandardRepositoryHookTrigger PULL_REQUEST_MERGE
PullRequestMergeHookRequest
public static final StandardRepositoryHookTrigger REPO_PUSH
RepositoryPushHookRequest
public static final StandardRepositoryHookTrigger TAG_CREATE
TagCreationHookRequest
public static final StandardRepositoryHookTrigger TAG_DELETE
TagDeletionHookRequest
public 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 RepositoryHookTrigger
public boolean isAbortOnFirstVeto()
isAbortOnFirstVeto
in interface RepositoryHookTrigger
RepositoryHookService.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 © 2024 Atlassian. All rights reserved.