Package com.atlassian.bitbucket.pull
Interface PullRequest
- All Superinterfaces:
Commentable
,PropertySupport
,Watchable
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getState()
getTitle()
getToRef()
int
boolean
isClosed()
Retrieves a flag indicating whether this pull request is closed.boolean
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 isopen
.Methods inherited from interface com.atlassian.bitbucket.comment.Commentable
accept
Methods inherited from interface com.atlassian.bitbucket.property.PropertySupport
getProperties
-
Method Details
-
getAuthor
- Returns:
- the creating author of the pull request
-
getClosedDate
- Returns:
- the date the pull request was closed (i.e. last transitioned to
PullRequestState.MERGED
orPullRequestState.DECLINED
; ornull
if the pull request is currentlyPullRequestState.OPEN
- Since:
- 4.10
-
getCreatedDate
- Returns:
- the date when the pull request was created
-
getDescription
- Returns:
- the description associated with the pull request (limit to 32k) or
null
if none was specified
-
getFromRef
- Returns:
- the ref containing the changes to review and merge
-
getId
long getId()- Returns:
- the repository-scoped identifier of the pull request
-
getParticipants
- Returns:
- the non-reviewing participants attached to the pull request
-
getReviewers
- Returns:
- the reviewing participants attached to the pull request
-
getState
- Returns:
- the state (e.g. opened, merged or declined) of the pull request
-
getTitle
- Returns:
- the mandatory title of the pull request
-
getToRef
- Returns:
- the ref the changes should be merged to
-
getUpdatedDate
- Returns:
- the last update of the pull request
-
getVersion
int getVersion()- Returns:
- the current version of the pull request
-
isClosed
boolean isClosed()Retrieves a flag indicating whether this pull request is closed.Declined
andmerged
pull requests are both considered closed.- Returns:
true
if this pull request is declined or merged, otherwise,false
if it isopen
-
isCrossRepository
boolean isCrossRepository()Retrieves a flag indicating whether thefrom
andto
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.- Returns:
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 repository
-
isDraft
boolean isDraft()Retrieves a flag indicating whether this pull request is a draft.- Returns:
true
if this pull request is a draft; otherwise,false
- Since:
- 8.18
-
isLocked
boolean isLocked()- Returns:
true
if the pull request is locked internally; otherwisefalse
-
isOpen
boolean isOpen()Retrieves a flag indicating whether this pull request isopen
. Pull requests which have beendeclined
ormerged
are consideredclosed
.- Returns:
true
if this pull request is open; otherwise,false
if is declined or merged
-