public interface PreRepositoryHook<T extends com.atlassian.bitbucket.hook.repository.RepositoryHookRequest>
|Modifier and Type||Method and Description|
Callback method that is called after all registered and enabled hooks have been called
Callback method that is called just before a request to update one or more
@Nonnull com.atlassian.bitbucket.hook.repository.RepositoryHookResult preUpdate(@Nonnull PreRepositoryHookContext context, @Nonnull T request)
context- provides hook settings and provides a way to obtain the commits added/removed
request- provides the refs that are about to be updated.
default void onEnd(@Nonnull PreRepositoryHookContext context, @Nonnull T request, @Nonnull com.atlassian.bitbucket.hook.repository.RepositoryHookResult result)
context- provides hook settings and a way to obtain the commits added/removed
request- the change request
result- the combined outcome of all hooks that have been called, containing all vetoes returned by any of the hooks
Copyright © 2020 Atlassian. All rights reserved.