java.lang.Object | ||
↳ | com.atlassian.bitbucket.hook.repository.RepositoryHookContext | |
↳ | com.atlassian.bitbucket.hook.repository.PreRepositoryHookContext |
RepositoryHookContext
specialization that is provided to PreRepositoryHook
hooks
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Registers a callback to receive more information about commits added or removed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.hook.repository.RepositoryHookContext
| |||||||||||
From class
java.lang.Object
|
Registers a callback to receive more information about commits added or removed. See the documentation on
PreRepositoryHookCommitCallback
for details about when the callback methods are called.
Note: hooks may only register callbacks during
preUpdate(PreRepositoryHookContext, RepositoryHookRequest)
. If a callback is
registered at any other time, false
is returned and the callback is ignored.
callback | the callback |
---|---|
filter | the type of commit details the callback is interested in |
moreFilters | other types of commit details the callback is interested in |
true
if the callback was successfully registered, otherwise false
. If false
is returned here, the callback will not be called