public enum AutoMergeCancelledReason extends Enum<AutoMergeCancelledReason>
| Enum Constant and Description |
|---|
EXPIRED
The auto-merge request was cancelled after exceeding its maximum lifetime.
|
INSUFFICIENT_USER_PERMISSIONS
The auto-merge request was cancelled because the user who created it does not have
Permission.REPO_WRITE
permission for the repository containing the pull request. |
MERGE_CHECK_TIMEOUT
The auto-merge request was cancelled because checking the pull request mergeability took more time than allowed.
|
MERGE_CONFLICTS
The auto-merge request was cancelled because there are merge conflicts between the source and target branches
of the pull request.
|
MERGE_STRATEGY_FAILURE
The auto-merge request was cancelled because the pull request cannot be merged using the requested
PullRequestMergeStrategy. |
RETARGETED
The auto-merge request was cancelled because the
target branch was changed. |
SETTING_DISABLED
The auto-merge request was cancelled because auto-merge is not enabled for the repository containing the pull
request.
|
SOURCE_BRANCH_COMMITS_CHANGED
The auto-merge request was cancelled because the commit hash of the
source branch
was changed. |
UNEXPECTED_ERROR
The auto-merge request was cancelled after encountering an error attempting to merge the pull request.
|
USER_CANCELLED_REQUEST
The auto-merge request was cancelled directly by a user.
|
USER_DELETED
The auto-merge request was cancelled because the user who created it was deleted.
|
| Modifier and Type | Method and Description |
|---|---|
static AutoMergeCancelledReason |
fromId(int id) |
int |
getId() |
static AutoMergeCancelledReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoMergeCancelledReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoMergeCancelledReason USER_CANCELLED_REQUEST
public static final AutoMergeCancelledReason RETARGETED
target branch was changed.public static final AutoMergeCancelledReason SOURCE_BRANCH_COMMITS_CHANGED
source branch
was changed.public static final AutoMergeCancelledReason MERGE_CONFLICTS
public static final AutoMergeCancelledReason SETTING_DISABLED
public static final AutoMergeCancelledReason EXPIRED
pullrequest.auto.merge.request.max.lifetime.public static final AutoMergeCancelledReason USER_DELETED
public static final AutoMergeCancelledReason MERGE_STRATEGY_FAILURE
PullRequestMergeStrategy.public static final AutoMergeCancelledReason INSUFFICIENT_USER_PERMISSIONS
Permission.REPO_WRITE
permission for the repository containing the pull request.public static final AutoMergeCancelledReason MERGE_CHECK_TIMEOUT
pullrequest.auto.merge.request.mergeabilityCheck.timeout.public static final AutoMergeCancelledReason UNEXPECTED_ERROR
public static AutoMergeCancelledReason[] values()
for (AutoMergeCancelledReason c : AutoMergeCancelledReason.values()) System.out.println(c);
public static AutoMergeCancelledReason 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 nullpublic static AutoMergeCancelledReason fromId(int id)
public int getId()
Copyright © 2023 Atlassian. All rights reserved.