public interface

RepositoryMergeRequestCheck

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

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.