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 |
isLocked() |
boolean |
isOpen()
Retrieves a flag indicating whether this pull request is
open . |
getProperties
accept
@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
open
boolean 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 isLocked()
true
if the pull request is locked internally; otherwise false
Copyright © 2019 Atlassian. All rights reserved.