Package com.atlassian.bitbucket.pull
Enum Class PullRequestAction
- All Implemented Interfaces:
Serializable,Comparable<PullRequestAction>,Constable
Enumerates the actions which can be taken on a pull request, defining the
activities
that may occur. Each action may have an associated activity type.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA user has approved apull requestActivity:PullRequestActivityEvent:PullRequestParticipantApprovedEventAuto-merge was cancelled on apull request.Auto-merge was requested on apull request.A comment has beenadded, deleted, edited or replied toon thepull request.Thepull requesthas been rejected and declined without merging.Thepull requesthas been deleted.Thepull requesthas been accepted and merged to thetarget.A newpull requesthas been opened.A previously declinedpull requesthas been reopened.The scope of thepull requesthas been changed and commits have been added or removed.Discard a user's pull request review wherepending commentswere added to apull request.The pull request review where the user has addedpending commentson apull requestis finished.A user has finished reviewing the changes in apull request.A user has removed a approval from apull requestActivity:PullRequestActivityEvent:PullRequestParticipantUnapprovedEventThe details of thepull request, such as title or description, have been updated. -
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestActionfromId(int id) intgetId()static PullRequestActionReturns the enum constant of this class with the specified name.static PullRequestAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPROVED
A user has approved apull request- Activity:
PullRequestActivity - Event:
PullRequestParticipantApprovedEvent
- Activity:
-
AUTO_MERGE_CANCELLED
Auto-merge was cancelled on apull request.- Activity:
PullRequestAutoMergeCancelledActivity - Event:
PullRequestAutoMergeCancelledEvent
- Since:
- 8.13
- Activity:
-
AUTO_MERGE_REQUESTED
Auto-merge was requested on apull request.- Activity:
PullRequestActivity - Event:
PullRequestAutoMergeRequestedEvent
- Since:
- 8.13
- Activity:
-
COMMENTED
A comment has beenadded, deleted, edited or replied toon thepull request. -
DECLINED
Thepull requesthas been rejected and declined without merging.- Activity:
PullRequestActivity - Event:
PullRequestDeclinedEvent
- Activity:
-
DELETED
Thepull requesthas been deleted.- Event:
PullRequestDeletedEvent
Note: Since the pull request has been deleted, along with all of its activities and comments, this action will never be returned by an
activity.- Since:
- 5.1
- Event:
-
MERGED
Thepull requesthas been accepted and merged to thetarget.- Activity:
PullRequestMergeActivity - Event:
PullRequestMergedEvent
- Activity:
-
OPENED
A newpull requesthas been opened.- Activity:
PullRequestActivity - Events:
- Activity:
-
REOPENED
A previously declinedpull requesthas been reopened.- Activity:
PullRequestActivity - Event:
PullRequestReopenedEvent
- Activity:
-
RESCOPED
The scope of thepull requesthas been changed and commits have been added or removed.- Activity:
PullRequestRescopeActivity - Event:
PullRequestRescopedEvent
- Activity:
-
REVIEW_COMMENTED
Apending commenthas beenadded or repliedon thepull request. NOTE: This action does not create anactivityitem.- Since:
- 7.7
-
REVIEW_DISCARDED
Discard a user's pull request review wherepending commentswere added to apull request. NOTE: This action does not create anactivityitem.- Since:
- 7.7
-
REVIEW_FINISHED
The pull request review where the user has addedpending commentson apull requestis finished. NOTE: This action does not create anactivityitem.- Since:
- 7.7
-
REVIEWED
A user has finished reviewing the changes in apull request. They have provided feedback which needs to be addressed before they can approve. NOTE: This action does not create anactivityitem.- Since:
- 4.4
-
UNAPPROVED
A user has removed a approval from apull request- Activity:
PullRequestActivity - Event:
PullRequestParticipantUnapprovedEvent
- Activity:
-
UPDATED
The details of thepull request, such as title or description, have been updated.- Activity:
PullRequestActivity - Event:
PullRequestUpdatedEvent
- Activity:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromId
-
getId
public int getId()
-