public interface

PullRequestMergeability

com.atlassian.stash.pull.PullRequestMergeability

Class Overview

Describes whether a pull request can merge and why this is so.

Summary

Public Methods
boolean canMerge()
Collection<PullRequestMergeVeto> getVetos()
boolean isConflicted()

Public Methods

public boolean canMerge ()

Returns
  • returns false if the pull request cannot be merged for any reason, true otherwise

public Collection<PullRequestMergeVeto> getVetos ()

Returns
  • returns the vetoes any MergeRequestCheck have raised when checking the mergeability of the pull request. Any pull request with vetoes cannot be merged.

public boolean isConflicted ()

Returns
  • returns true if the pull request has merge conflicts requiring resolution. A pull request with merge conflicts cannot be merged.