Package com.atlassian.bitbucket.pull
Interface PullRequestMergeActivity
- All Superinterfaces:
Activity
,PullRequestActivity
A
PullRequestActivity
representing when the pull request was merged.
Note that merging pull requests is delegated to the SCM implementation, which might support multiple strategies for
merging the changes into the target branch. As such the type of the merge commit
should not
be assumed.
Also note that the merge commit
and commit ID
can be null
if the pull request was merged remotely and pushed rather than being merged via the UI or REST.
- See Also:
-
Method Summary
Methods inherited from interface com.atlassian.bitbucket.activity.Activity
getCreatedDate, getId, getUser
Methods inherited from interface com.atlassian.bitbucket.pull.PullRequestActivity
accept, getAction, getPullRequest
-
Method Details
-
getCommit
- Returns:
- the merge commit, which may be
null
if the pull request was merged remotely or activity has been not enriched
-
getCommitId
- Returns:
- the merge commit ID, if the merge was performed by the system, or
null
if it was done remotely - Since:
- 7.15
-
isAutoMerge
boolean isAutoMerge()- Returns:
true
if the pull request wasauto-merged
by the system on behalf of a user; otherwisefalse
- Since:
- 8.14
-
isRemote
boolean isRemote()- Returns:
true
if the merge was done remotely; otherwise,false
if it was done by the system- Since:
- 7.15
-