Interface PullRequestMergeActivity

All Superinterfaces:
Activity, PullRequestActivity

public interface PullRequestMergeActivity extends 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 Details

    • getCommit

      @Nullable Commit getCommit()
      Returns:
      the merge commit, which may be null if the pull request was merged remotely or activity has been not enriched
    • getCommitId

      @Nullable String 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 was auto-merged by the system on behalf of a user; otherwise false
      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