public interface

MergeRequestCheck

com.atlassian.stash.scm.pull.MergeRequestCheck

Class Overview

Used to enforce a specific precondition for a merge operation.

Summary

Public Methods
void check(MergeRequest request)
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.

Public Methods

public void check (MergeRequest request)

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
request the merge in progress