Package com.atlassian.bitbucket.pull
Interface PullRequest
- All Superinterfaces:
Commentable,PropertySupport,Watchable
-
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getState()getTitle()getToRef()intbooleanisClosed()Retrieves a flag indicating whether this pull request is closed.booleanbooleanisDraft()Retrieves a flag indicating whether this pull request is a draft.booleanisLocked()booleanisOpen()Retrieves a flag indicating whether this pull request isopen.Methods inherited from interface com.atlassian.bitbucket.comment.Commentable
acceptMethods 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.MERGEDorPullRequestState.DECLINED; ornullif 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
nullif 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.Declinedandmergedpull requests are both considered closed.- Returns:
trueif this pull request is declined or merged, otherwise,falseif it isopen
-
isCrossRepository
boolean isCrossRepository()Retrieves a flag indicating whether thefromandtorepositories 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:
trueif this pull request will merge changes from one repository into another one; otherwise,falseif 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:
trueif this pull request is a draft; otherwise,false- Since:
- 8.18
-
isLocked
boolean isLocked()- Returns:
trueif the pull request is locked internally; otherwisefalse
-
isOpen
boolean isOpen()Retrieves a flag indicating whether this pull request isopen. Pull requests which have beendeclinedormergedare consideredclosed.- Returns:
trueif this pull request is open; otherwise,falseif is declined or merged
-