public interface

PreRepositoryHookCommitCallback

implements RepositoryHookCommitCallback
com.atlassian.bitbucket.hook.repository.PreRepositoryHookCommitCallback

Class Overview

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 onEnd() has been called.

Summary

Public Methods
@Nonnull RepositoryHookResult getResult()
Returns the outcome of the callback's processing of commits.
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.hook.repository.RepositoryHookCommitCallback

Public Methods

@Nonnull public RepositoryHookResult getResult ()

Returns the outcome of the callback's processing of commits. This method will be called after onEnd() has been called.

Returns
  • the outcome of the callback's processing of commits