public interface

PullRequestMergeability

implements PropertySupport
com.atlassian.bitbucket.pull.PullRequestMergeability

Class Overview

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

Summary

Public Methods
boolean canMerge()
@Nonnull PullRequestMergeOutcome getOutcome()
@Nonnull Collection<PullRequestMergeVeto> getVetoes()
boolean isConflicted()
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.property.PropertySupport

Public Methods

public boolean canMerge ()

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

@Nonnull public PullRequestMergeOutcome getOutcome ()

Returns
  • the outcome of trying to merge this pull request

@Nonnull public Collection<PullRequestMergeVeto> getVetoes ()

Returns
  • a collection containing zero or more vetoes from MergeRequestChecks used to validate merge preconditions

public boolean isConflicted ()

Returns