public abstract class PostRepositoryHookContext extends RepositoryHookContext
RepositoryHookContext specialization that is provided to PostRepositoryHook hooks| Modifier | Constructor and Description | 
|---|---|
| protected  | PostRepositoryHookContext(com.atlassian.bitbucket.setting.Settings settings,
                         boolean synchronous) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isSynchronous() | 
| abstract boolean | registerCommitCallback(RepositoryHookCommitCallback callback,
                      RepositoryHookCommitFilter filter,
                      RepositoryHookCommitFilter... moreFilters)Registers a callback to receive more information about commits added or removed. | 
getSettingsprotected PostRepositoryHookContext(@Nonnull com.atlassian.bitbucket.setting.Settings settings, boolean synchronous)
public boolean isSynchronous()
true if the hook is invoked synchronously, for instance as part of a
         push to the repository. Only hooks annotated with
         SynchronousPreferred will be invoked synchronously.SynchronousPreferredpublic abstract boolean registerCommitCallback(@Nonnull RepositoryHookCommitCallback callback, @Nonnull RepositoryHookCommitFilter filter, @Nullable RepositoryHookCommitFilter... moreFilters)
RepositoryHookCommitCallback for details about when the callback methods are called.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.