public interface PullRequestMergeActivity extends PullRequestActivity
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.
PullRequestActivityType.MERGE| Modifier and Type | Method and Description |
|---|---|
Commit |
getCommit() |
String |
getCommitId() |
boolean |
isAutoMerge() |
boolean |
isRemote() |
accept, getAction, getPullRequestgetCreatedDate, getId, getUser@Nullable Commit getCommit()
null if the pull request was merged remotely
or activity has been not enriched@Nullable String getCommitId()
null if it was done remotelyboolean isAutoMerge()
true if the pull request was auto-merged by the
system on behalf of a user; otherwise falseboolean isRemote()
true if the merge was done remotely; otherwise, false if it was done by the systemCopyright © 2024 Atlassian. All rights reserved.