public enum RepositoryHookType extends Enum<RepositoryHookType>
RepositoryHook.
This determines where the hook is displayed on the hook settings screen.
| Enum Constant and Description |
|---|
POST_RECEIVE
Represents a post-receive hook, which are used to trigger actions after a successful push/merge.
|
PRE_PULL_REQUEST_MERGE
Represents a pre-receive hook, which are used to enforce a specific precondition for a pull-request merge operation.
|
PRE_RECEIVE
Represents a pre-receive hook, which are used to restrict pushing/merging in some instances.
|
| Modifier and Type | Method and Description |
|---|---|
static RepositoryHookType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RepositoryHookType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RepositoryHookType PRE_RECEIVE
public static final RepositoryHookType PRE_PULL_REQUEST_MERGE
public static final RepositoryHookType POST_RECEIVE
public static RepositoryHookType[] values()
for (RepositoryHookType c : RepositoryHookType.values()) System.out.println(c);
public static RepositoryHookType 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 © 2019 Atlassian. All rights reserved.