Package org.azd.enums

Enum Class GitPullRequestMergeStrategy

java.lang.Object
java.lang.Enum<GitPullRequestMergeStrategy>
org.azd.enums.GitPullRequestMergeStrategy
All Implemented Interfaces:
Serializable, Comparable<GitPullRequestMergeStrategy>, Constable

public enum GitPullRequestMergeStrategy extends Enum<GitPullRequestMergeStrategy>
Status context that uniquely identifies the status.
  • Enum Constant Details

    • NOFASTFORWARD

      public static final GitPullRequestMergeStrategy NOFASTFORWARD
      A two-parent, no-fast-forward merge. The source branch is unchanged. This is the default behavior.
    • REBASE

      public static final GitPullRequestMergeStrategy REBASE
      Rebase the source branch on top of the target branch HEAD commit, and fast-forward the target branch. The source branch is updated during the rebase operation.
    • REBASEMERGE

      public static final GitPullRequestMergeStrategy REBASEMERGE
      Rebase the source branch on top of the target branch HEAD commit, and create a two-parent, no-fast-forward merge. The source branch is updated during the rebase operation.
    • SQUASH

      public static final GitPullRequestMergeStrategy SQUASH
      Put all changes from the pull request into a single-parent commit.
  • Method Details

    • values

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