Package org.kohsuke.github
Enum GHPullRequestReviewState
- java.lang.Object
-
- java.lang.Enum<GHPullRequestReviewState>
-
- org.kohsuke.github.GHPullRequestReviewState
-
- All Implemented Interfaces:
Serializable
,Comparable<GHPullRequestReviewState>
public enum GHPullRequestReviewState extends Enum<GHPullRequestReviewState>
Current state ofGHPullRequestReview
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVED
The approved.CHANGES_REQUESTED
The changes requested.COMMENTED
The commented.DISMISSED
The dismissed.PENDING
The pending.REQUEST_CHANGES
Deprecated.This was the thing when this API was in preview, but it changed when it became public.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
action()
Deprecated.This was an internal method accidentally exposed.static GHPullRequestReviewState
valueOf(String name)
Returns the enum constant of this type with the specified name.static GHPullRequestReviewState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final GHPullRequestReviewState PENDING
The pending.
-
APPROVED
public static final GHPullRequestReviewState APPROVED
The approved.
-
CHANGES_REQUESTED
public static final GHPullRequestReviewState CHANGES_REQUESTED
The changes requested.
-
REQUEST_CHANGES
public static final GHPullRequestReviewState REQUEST_CHANGES
Deprecated.This was the thing when this API was in preview, but it changed when it became public. UseCHANGES_REQUESTED
. Left here for compatibility.The request changes.
-
COMMENTED
public static final GHPullRequestReviewState COMMENTED
The commented.
-
DISMISSED
public static final GHPullRequestReviewState DISMISSED
The dismissed.
-
-
Method Detail
-
values
public static GHPullRequestReviewState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GHPullRequestReviewState c : GHPullRequestReviewState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHPullRequestReviewState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
action
public String action()
Deprecated.This was an internal method accidentally exposed. Left here for compatibility.Action string.- Returns:
- the string
-
-