public interface PullRequest extends PropertySupport, Commentable, Watchable
| Modifier and Type | Method and Description |
|---|---|
PullRequestParticipant |
getAuthor() |
Date |
getClosedDate() |
Date |
getCreatedDate() |
String |
getDescription() |
PullRequestRef |
getFromRef() |
long |
getId() |
Set<PullRequestParticipant> |
getParticipants() |
Set<PullRequestParticipant> |
getReviewers() |
PullRequestState |
getState() |
String |
getTitle() |
PullRequestRef |
getToRef() |
Date |
getUpdatedDate() |
int |
getVersion() |
boolean |
isClosed()
Retrieves a flag indicating whether this pull request is closed.
|
boolean |
isCrossRepository()
|
boolean |
isDraft()
Retrieves a flag indicating whether this pull request is a draft.
|
boolean |
isLocked() |
boolean |
isOpen()
Retrieves a flag indicating whether this pull request is
open. |
getPropertiesaccept@Nonnull PullRequestParticipant getAuthor()
@Nullable Date getClosedDate()
PullRequestState.MERGED or
PullRequestState.DECLINED; or null if the pull request is currently PullRequestState.OPEN@Nullable @OptionalString(size=32768) String getDescription()
null if none was specified@Nonnull PullRequestRef getFromRef()
long getId()
@Nonnull Set<PullRequestParticipant> getParticipants()
@Nonnull Set<PullRequestParticipant> getReviewers()
@Nonnull PullRequestState getState()
@Nonnull @RequiredString String getTitle()
@Nonnull PullRequestRef getToRef()
int getVersion()
boolean isClosed()
Declined and
merged pull requests are both considered closed.true if this pull request is declined or merged, otherwise, false if it is
openboolean isCrossRepository()
from and to repositories for
this pull request are distinct. This is a convenience utility to allow simple detection for pull requests that
merge changes from one repository into another.true if this pull request will merge changes from one repository into another one; otherwise,
false if the changes are simply on different branches in the same repositoryboolean isDraft()
true if this pull request is a draft; otherwise, falseboolean isLocked()
true if the pull request is locked internally; otherwise falseCopyright © 2024 Atlassian. All rights reserved.