Interface PreRepositoryHookCommitCallback

All Superinterfaces:
RepositoryHookCommitCallback

public interface PreRepositoryHookCommitCallback extends RepositoryHookCommitCallback
Specialized callback that pre-hooks can register to receive commit-level details for the requested change.

This callback receives commit details as described by RepositoryHookCommitCallback, but also provides a getResult() method that allows the hook to veto the requested change.

The getResult() method will be called after RepositoryHookCommitCallback.onEnd() has been called.

Since:
5.0
See Also:
  • Method Details

    • getResult

      @Nonnull com.atlassian.bitbucket.hook.repository.RepositoryHookResult getResult()
      Returns the outcome of the callback's processing of commits. This method will be called after RepositoryHookCommitCallback.onEnd() has been called.
      Returns:
      the outcome of the callback's processing of commits