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 ConstantDescriptionA user has approved apull request
Activity:PullRequestActivity
Event:PullRequestParticipantApprovedEvent
Auto-merge was cancelled on apull request
.Auto-merge was requested on apull request
.A comment has beenadded, deleted, edited or replied to
on thepull request
.Thepull request
has been rejected and declined without merging.Thepull request
has been deleted.Thepull request
has been accepted and merged to thetarget
.A newpull request
has been opened.A previously declinedpull request
has been reopened.The scope of thepull request
has been changed and commits have been added or removed.Discard a user's pull request review wherepending comments
were added to apull request
.The pull request review where the user has addedpending comments
on apull request
is finished.A user has finished reviewing the changes in apull request
.A user has removed a approval from apull request
Activity:PullRequestActivity
Event:PullRequestParticipantUnapprovedEvent
The details of thepull request
, such as title or description, have been updated. -
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestAction
fromId
(int id) int
getId()
static PullRequestAction
Returns 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 to
on thepull request
. -
DECLINED
Thepull request
has been rejected and declined without merging.- Activity:
PullRequestActivity
- Event:
PullRequestDeclinedEvent
- Activity:
-
DELETED
Thepull request
has 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 request
has been accepted and merged to thetarget
.- Activity:
PullRequestMergeActivity
- Event:
PullRequestMergedEvent
- Activity:
-
OPENED
A newpull request
has been opened.- Activity:
PullRequestActivity
- Events:
- Activity:
-
REOPENED
A previously declinedpull request
has been reopened.- Activity:
PullRequestActivity
- Event:
PullRequestReopenedEvent
- Activity:
-
RESCOPED
The scope of thepull request
has been changed and commits have been added or removed.- Activity:
PullRequestRescopeActivity
- Event:
PullRequestRescopedEvent
- Activity:
-
REVIEW_COMMENTED
Apending comment
has beenadded or replied
on thepull request
. NOTE: This action does not create anactivity
item.- Since:
- 7.7
-
REVIEW_DISCARDED
Discard a user's pull request review wherepending comments
were added to apull request
. NOTE: This action does not create anactivity
item.- Since:
- 7.7
-
REVIEW_FINISHED
The pull request review where the user has addedpending comments
on apull request
is finished. NOTE: This action does not create anactivity
item.- 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 anactivity
item.- 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()
-