public enum PullRequestAction extends Enum<PullRequestAction>
activities
that may occur. Each action may have an associated activity
type.Enum Constant and Description |
---|
APPROVED
A user has approved a
pull request
Activity: PullRequestActivity
Event: PullRequestParticipantApprovedEvent
|
COMMENTED
A comment has been
added, deleted, edited or replied to on
the pull request . |
DECLINED
The
pull request has been rejected and declined without merging. |
DELETED
The
pull request has been deleted. |
MERGED
The
pull request has been accepted and merged to the target . |
OPENED
A new
pull request has been opened. |
REOPENED
A previously declined
pull request has been reopened. |
RESCOPED
The scope of the
pull request has been changed and commits have been added or removed. |
REVIEWED
A user has finished reviewing the changes in a
pull request . |
UNAPPROVED
A user has removed a approval from a
pull request
Activity: PullRequestActivity
Event: PullRequestParticipantUnapprovedEvent
|
UPDATED
The details of the
pull request , such as title or description, have been updated. |
Modifier and Type | Method and Description |
---|---|
static PullRequestAction |
fromId(int id) |
int |
getId() |
static PullRequestAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PullRequestAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullRequestAction APPROVED
pull request
PullRequestActivity
PullRequestParticipantApprovedEvent
public static final PullRequestAction COMMENTED
added, deleted, edited or replied to
on
the pull request
.
public static final PullRequestAction DECLINED
pull request
has been rejected and declined without merging.
PullRequestActivity
PullRequestDeclinedEvent
public static final PullRequestAction DELETED
pull request
has been deleted.
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
.
public static final PullRequestAction MERGED
pull request
has been accepted and merged to the target
.
PullRequestMergeActivity
PullRequestMergedEvent
public static final PullRequestAction OPENED
pull request
has been opened.
PullRequestActivity
public static final PullRequestAction REOPENED
pull request
has been reopened.
PullRequestActivity
PullRequestReopenedEvent
public static final PullRequestAction RESCOPED
pull request
has been changed and commits have been added or removed.
PullRequestRescopeActivity
PullRequestRescopedEvent
public static final PullRequestAction REVIEWED
pull request
.
They have provided feedback which needs to be addressed before they can approve.
NOTE: This action does not create an activity
item.
public static final PullRequestAction UNAPPROVED
pull request
PullRequestActivity
PullRequestParticipantUnapprovedEvent
public static final PullRequestAction UPDATED
pull request
, such as title or description, have been updated.
PullRequestActivity
PullRequestUpdatedEvent
public static PullRequestAction[] values()
for (PullRequestAction c : PullRequestAction.values()) System.out.println(c);
public static PullRequestAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PullRequestAction fromId(int id)
public int getId()
Copyright © 2019 Atlassian. All rights reserved.