Interface RepositoryMergeCheck

All Superinterfaces:
PreRepositoryHook<com.atlassian.bitbucket.hook.repository.PullRequestMergeHookRequest>

public interface RepositoryMergeCheck extends PreRepositoryHook<com.atlassian.bitbucket.hook.repository.PullRequestMergeHookRequest>
Used to enforce a specific precondition for a pull request merge operation.

Merge checks are called for:

  • PullRequestService#canMerge
  • PullRequestService#merge
RepositoryHookRequest.isDryRun() can be used to determine which operation is in progress, for implementations which should only be applied to one or the other (but most checks should apply the same way to both).
Since:
5.0