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.
Used to enforce a specific precondition for a merge operation. This will only be called if the containing hook has been enabled.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a merge has been requested, allowing plugins to apply custom rules
to validate whether the merge should be allowed.
|
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.
context | context about the merge in progress. |
---|