public abstract class PreRepositoryHookContext extends RepositoryHookContext
RepositoryHookContext specialization that is provided to PreRepositoryHook hooks| Modifier | Constructor and Description | 
|---|---|
| protected  | PreRepositoryHookContext(com.atlassian.bitbucket.setting.Settings settings) | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | registerCommitCallback(PreRepositoryHookCommitCallback callback,
                      RepositoryHookCommitFilter filter,
                      RepositoryHookCommitFilter... moreFilters)Registers a callback to receive more information about commits added or removed. | 
getSettingsprotected PreRepositoryHookContext(@Nonnull com.atlassian.bitbucket.setting.Settings settings)
public abstract boolean registerCommitCallback(@Nonnull PreRepositoryHookCommitCallback callback, @Nonnull RepositoryHookCommitFilter filter, @Nullable RepositoryHookCommitFilter... moreFilters)
PreRepositoryHookCommitCallback for details about when the callback methods are called.
 
 Note: hooks may only register callbacks during
 PreRepositoryHook.preUpdate(PreRepositoryHookContext, RepositoryHookRequest). If a callback is
 registered at any other time, false is returned and the callback is ignored.
callback - the callbackfilter - the type of commit details the callback is interested inmoreFilters - other types of commit details the callback is interested intrue if the callback was successfully registered, otherwise false. If false
         is returned here, the callback will not be calledCopyright © 2024 Atlassian. All rights reserved.