Package com.atlassian.bitbucket.scm.pull
Interface MergeRequestCheckService
public interface MergeRequestCheckService
A service that checks preconditions for pull request merges by applying
RepositoryMergeCheck
s, which can
be supplied by plugins, to determine whether merges should performed.-
Method Summary
Modifier and TypeMethodDescriptionCollection<com.atlassian.bitbucket.pull.PullRequestMergeVeto>
check
(com.atlassian.bitbucket.pull.PullRequest pullRequest) Applies all registered and enabledRepositoryMergeCheck
s to determine if a pull request merge should proceed.
-
Method Details
-
check
@Nonnull Collection<com.atlassian.bitbucket.pull.PullRequestMergeVeto> check(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest) Applies all registered and enabledRepositoryMergeCheck
s to determine if a pull request merge should proceed. If any checkvetoes
theMergeRequest
then the merge should not be performed. APullRequestMergeVeto
will be returned for each failed check. If no checks veto the merge it should be allowed to proceed.- Parameters:
pullRequest
- the pull request- Returns:
- a collection containing zero or more
vetoes
, where an empty collection indicates the merge should be allowed to proceed
-