public interface

AsyncPostReceiveRepositoryHook

implements RepositoryHookImplementor
com.atlassian.stash.hook.repository.AsyncPostReceiveRepositoryHook

Class Overview

Configured and enabled Repository Hook that is called after a push request is completed.

This is used in preference over PostReceiveHook in circumstances where a standard configuration is required. This hook can also be enabled/disabled at the repository level.

Summary

Public Methods
void postReceive(RepositoryHookContext context, Collection<RefChange> refChanges)
Callback method that is called just after a push is completed (or a pull request accepted).

Public Methods

public void postReceive (RepositoryHookContext context, Collection<RefChange> refChanges)

Callback method that is called just after a push is completed (or a pull request accepted). This hook executes after the processing of a push and will not block the user client.

Despite being asynchronous, the user who initiated this change is still available from com.atlassian.stash.user.StashAuthenticationContext.

Parameters
context the context which the hook is being run with
refChanges the refs that have just been updated