Package com.atlassian.bitbucket.pull
Enum Class AutoMergeCancelledReason
- All Implemented Interfaces:
- Serializable,- Comparable<AutoMergeCancelledReason>,- Constable
- Since:
- 8.14
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum 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_WRITEpermission 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 branchwas 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 branchwas 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 SummaryModifier and TypeMethodDescriptionstatic AutoMergeCancelledReasonfromId(int id) intgetId()static AutoMergeCancelledReasonReturns 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_REQUESTThe auto-merge request was cancelled directly by a user.
- 
RETARGETEDThe auto-merge request was cancelled because thetarget branchwas changed.
- 
SOURCE_BRANCH_COMMITS_CHANGEDThe auto-merge request was cancelled because the commit hash of thesource branchwas changed.
- 
MERGE_CONFLICTSThe auto-merge request was cancelled because there are merge conflicts between the source and target branches of the pull request.
- 
SETTING_DISABLEDThe auto-merge request was cancelled because auto-merge is not enabled for the repository containing the pull request.
- 
EXPIREDThe 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_DELETEDThe auto-merge request was cancelled because the user who created it was deleted.
- 
MERGE_STRATEGY_FAILUREThe auto-merge request was cancelled because the pull request cannot be merged using the requestedPullRequestMergeStrategy.
- 
INSUFFICIENT_USER_PERMISSIONSThe auto-merge request was cancelled because the user who created it does not havePermission.REPO_WRITEpermission for the repository containing the pull request.
- 
MERGE_CHECK_TIMEOUTThe 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_ERRORThe auto-merge request was cancelled after encountering an error attempting to merge the pull request.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
fromId
- 
getIdpublic int getId()
 
-