Enum Class AutoMergeCancelledReason

java.lang.Object
java.lang.Enum<AutoMergeCancelledReason>
com.atlassian.bitbucket.pull.AutoMergeCancelledReason
All Implemented Interfaces:
Serializable, Comparable<AutoMergeCancelledReason>, Constable

public enum AutoMergeCancelledReason extends Enum<AutoMergeCancelledReason>
Since:
8.14
  • Enum Constant Details

    • USER_CANCELLED_REQUEST

      public static final AutoMergeCancelledReason USER_CANCELLED_REQUEST
      The auto-merge request was cancelled directly by a user.
    • RETARGETED

      public static final AutoMergeCancelledReason RETARGETED
      The auto-merge request was cancelled because the target branch was changed.
    • SOURCE_BRANCH_COMMITS_CHANGED

      public static final AutoMergeCancelledReason SOURCE_BRANCH_COMMITS_CHANGED
      The auto-merge request was cancelled because the commit hash of the source branch was changed.
    • MERGE_CONFLICTS

      public static final AutoMergeCancelledReason 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

      public static final AutoMergeCancelledReason SETTING_DISABLED
      The auto-merge request was cancelled because auto-merge is not enabled for the repository containing the pull request.
    • EXPIRED

      public static final AutoMergeCancelledReason EXPIRED
      The auto-merge request was cancelled after exceeding its maximum lifetime. The maximum lifetime can be configured through the property pullrequest.auto.merge.request.max.lifetime.
    • USER_DELETED

      public static final AutoMergeCancelledReason USER_DELETED
      The auto-merge request was cancelled because the user who created it was deleted.
    • MERGE_STRATEGY_FAILURE

      public static final AutoMergeCancelledReason MERGE_STRATEGY_FAILURE
      The auto-merge request was cancelled because the pull request cannot be merged using the requested PullRequestMergeStrategy.
    • INSUFFICIENT_USER_PERMISSIONS

      public static final AutoMergeCancelledReason 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

      public static final AutoMergeCancelledReason 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 property pullrequest.auto.merge.request.mergeabilityCheck.timeout.
    • UNEXPECTED_ERROR

      public static final AutoMergeCancelledReason UNEXPECTED_ERROR
      The auto-merge request was cancelled after encountering an error attempting to merge the pull request.
  • Method Details

    • values

      public static AutoMergeCancelledReason[] 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

      public static AutoMergeCancelledReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromId

      public static AutoMergeCancelledReason fromId(int id)
    • getId

      public int getId()