Package com.atlassian.bitbucket.pull
Enum Class AutoMergeCancelledReason
- All Implemented Interfaces:
Serializable
,Comparable<AutoMergeCancelledReason>
,Constable
- Since:
- 8.14
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe auto-merge request was cancelled after exceeding its maximum lifetime.The auto-merge request was cancelled because the user who created it does not havePermission.REPO_WRITE
permission for the repository containing the pull request.The auto-merge request was cancelled because checking the pull request mergeability took more time than allowed.The auto-merge request was cancelled because there are merge conflicts between the source and target branches of the pull request.The auto-merge request was cancelled because the pull request cannot be merged using the requestedPullRequestMergeStrategy
.The auto-merge request was cancelled because thetarget branch
was changed.The auto-merge request was cancelled because auto-merge is not enabled for the repository containing the pull request.The auto-merge request was cancelled because the commit hash of thesource branch
was changed.The auto-merge request was cancelled after encountering an error attempting to merge the pull request.The auto-merge request was cancelled directly by a user.The auto-merge request was cancelled because the user who created it was deleted. -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoMergeCancelledReason
fromId
(int id) int
getId()
static AutoMergeCancelledReason
Returns the enum constant of this class with the specified name.static AutoMergeCancelledReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER_CANCELLED_REQUEST
The auto-merge request was cancelled directly by a user. -
RETARGETED
The auto-merge request was cancelled because thetarget branch
was changed. -
SOURCE_BRANCH_COMMITS_CHANGED
The auto-merge request was cancelled because the commit hash of thesource branch
was changed. -
MERGE_CONFLICTS
The auto-merge request was cancelled because there are merge conflicts between the source and target branches of the pull request. -
SETTING_DISABLED
The auto-merge request was cancelled because auto-merge is not enabled for the repository containing the pull request. -
EXPIRED
The auto-merge request was cancelled after exceeding its maximum lifetime. The maximum lifetime can be configured through the propertypullrequest.auto.merge.request.max.lifetime
. -
USER_DELETED
The auto-merge request was cancelled because the user who created it was deleted. -
MERGE_STRATEGY_FAILURE
The auto-merge request was cancelled because the pull request cannot be merged using the requestedPullRequestMergeStrategy
. -
INSUFFICIENT_USER_PERMISSIONS
The auto-merge request was cancelled because the user who created it does not havePermission.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. The allowed time is configured by the propertypullrequest.auto.merge.request.mergeabilityCheck.timeout
. -
UNEXPECTED_ERROR
The auto-merge request was cancelled after encountering an error attempting to merge the pull request.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromId
-
getId
public int getId()
-