com.atlassian.bitbucket.hook.repository.PostRepositoryHook<T extends com.atlassian.bitbucket.hook.repository.RepositoryHookRequest> |
Hook that is called after changes to 1 or more refs have been made.
Hooks are called asynchronously by default, but implementors can annotate their implementation class with
SynchronousPreferred
to signal that the hook should be called synchronously. This gives the hook access
to the SCM client's output and error streams if the hook is triggered by a
StandardRepositoryHookTrigger#REPO_PUSH push to the repository.
If a hook is marked as SynchronousPreferred
, the implementor should ensure that the hook does not take a
long time to execute, since the repository push will not finish until all hooks have completed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback method that is called after a request to update one or more
refs is completed. |
Callback method that is called after a request to update one or more refs
is completed.
context | provides hook settings and a way to obtain the commits added/removed |
---|---|
request | provides details about the refs that have been updated |