@Deprecated public interface

RepositoryMergeRequestCheck

implements RepositoryHookImplementor
com.atlassian.bitbucket.hook.repository.RepositoryMergeRequestCheck

This interface is deprecated.
in 5.0 for removal in 6.0. Use a repository-merge-check module and implement RepositoryMergeCheck instead.

Class Overview

Used to enforce a specific precondition for a merge operation. This will only be called if the containing hook has been enabled.

Summary

Public Methods
void check(RepositoryMergeRequestCheckContext context)
Called when a merge has been requested, allowing plugins to apply custom rules to validate whether the merge should be allowed.

Public Methods

public void check (RepositoryMergeRequestCheckContext context)

Called when a merge has been requested, allowing plugins to apply custom rules to validate whether the merge should be allowed.

Calling veto(String, String) will stop the merge from proceeding. If not called the merge will proceed.

Parameters
context context about the merge in progress.