Enum Class LPVSPullRequestAction

java.lang.Object
java.lang.Enum<LPVSPullRequestAction>
com.lpvs.entity.enums.LPVSPullRequestAction
All Implemented Interfaces:
Serializable, Comparable<LPVSPullRequestAction>, Constable

public enum LPVSPullRequestAction extends Enum<LPVSPullRequestAction>
Represents the actions that can be performed on a pull request in the LPVS system. Each action corresponds to a specific event in the lifecycle of a pull request.
  • Enum Constant Details

    • OPEN

      public static final LPVSPullRequestAction OPEN
      Represents the action of opening a pull request.
    • REOPEN

      public static final LPVSPullRequestAction REOPEN
      Represents the action of reopening a closed pull request.
    • CLOSE

      public static final LPVSPullRequestAction CLOSE
      Represents the action of closing a pull request.
    • UPDATE

      public static final LPVSPullRequestAction UPDATE
      Represents the action of updating a pull request.
    • RESCAN

      public static final LPVSPullRequestAction RESCAN
      Represents the action of triggering a rescan of a pull request.
    • SINGLE_SCAN

      public static final LPVSPullRequestAction SINGLE_SCAN
      Represents the action of triggering a manual single scan of a pull request.
    • BOT_SCAN

      public static final LPVSPullRequestAction BOT_SCAN
      Represents the action of triggering a scan of a pull request by automation bot.
  • Method Details

    • values

      public static LPVSPullRequestAction[] 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 LPVSPullRequestAction 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
    • getPullRequestAction

      public String getPullRequestAction()
      Gets the string representation of the pull request action.
      Returns:
      The string representation of the pull request action.
    • convertFrom

      public static LPVSPullRequestAction convertFrom(String action)
      Converts a string representation of a pull request action to the corresponding enum constant.
      Parameters:
      action - The string representation of the pull request action.
      Returns:
      The corresponding LPVSPullRequestAction enum constant, or null if not found.