Interface PreRepositoryHookCommitCallback
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.hook.repository.RepositoryHookResultReturns the outcome of the callback's processing of commits.Methods inherited from interface com.atlassian.bitbucket.hook.repository.RepositoryHookCommitCallback
onCommitAdded, onCommitRemoved, onEnd, onStart
-
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 afterRepositoryHookCommitCallback.onEnd()has been called.- Returns:
- the outcome of the callback's processing of commits
-