Enum Class PullRequestMergeConfigType

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

public enum PullRequestMergeConfigType extends Enum<PullRequestMergeConfigType>
Configuration for pull request merge strategies can be applied at different levels, which are described here.
Since:
4.9
  • Enum Constant Details

    • DEFAULT

      public static final PullRequestMergeConfigType DEFAULT
      Merge strategies have not been explicitly configured at any level, so the SCM's defaults are being used.
    • PROJECT

      public static final PullRequestMergeConfigType PROJECT
      Merge strategies have been configured for the project. This is more specific than SCM level configuration, but can be overridden by repository level configuration.
    • REPOSITORY

      public static final PullRequestMergeConfigType REPOSITORY
      Merge strategies have been configured for the repository. This is the most specific level of configuration, overriding project and SCM level configuration, and cannot be overridden by configuration at any other level.
    • SCM

      public static final PullRequestMergeConfigType SCM
      Merge strategies have been configured globally for all repositories using this SCM. This is the least specific level of configuration, and can be overridden by configuration at the project or repository level.
  • Method Details

    • values

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