public interface

PullRequestMergeability

implements PropertySupport
com.atlassian.stash.pull.PullRequestMergeability

Class Overview

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

Summary

Public Methods
boolean canMerge()
@Nonnull Collection<PullRequestMergeVeto> getVetoes()
@Deprecated @Nonnull Collection<PullRequestMergeVeto> getVetos()
This method is deprecated. in 3.7 for removal in 4.0. Use getVetoes() instead.
boolean isConflicted()
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.AttributeSupport
From interface com.atlassian.stash.property.PropertySupport

Public Methods

public boolean canMerge ()

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

@Nonnull public Collection<PullRequestMergeVeto> getVetoes ()

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

@Deprecated @Nonnull public Collection<PullRequestMergeVeto> getVetos ()

This method is deprecated.
in 3.7 for removal in 4.0. Use getVetoes() instead.

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

public boolean isConflicted ()

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