public interface GitWorkTreeRepositoryHookInvoker
publishing a work tree.
Implementors are encouraged to extend AbstractGitWorkTreeRepositoryHookInvoker.GitWorkTree.publish(PublishGitWorkTreeParameters),
AbstractGitWorkTreeRepositoryHookInvoker| Modifier and Type | Method and Description |
|---|---|
void |
postUpdate(GitWorkTree workTree,
List<com.atlassian.bitbucket.repository.RefChange> refChanges)
Called by
GitWorkTree.publish(PublishGitWorkTreeParameters) after the work tree ref has been published. |
boolean |
preUpdate(GitWorkTree workTree,
List<com.atlassian.bitbucket.repository.RefChange> refChanges)
Called by
GitWorkTree.publish(PublishGitWorkTreeParameters) before the work tree ref is
published. |
boolean preUpdate(@Nonnull GitWorkTree workTree, @Nonnull List<com.atlassian.bitbucket.repository.RefChange> refChanges)
GitWorkTree.publish(PublishGitWorkTreeParameters) before the work tree ref is
published. Implementors should call RepositoryHookService.preUpdate(RepositoryHookRequest) with an
appropriate RepositoryHookRequest.workTree - the work tree for which a refChange are about to be publishedrefChanges - the ref changes about to be publishedtrue if the pre-update hooks accepted the change, otherwise falseRepositoryHookService.preUpdate(RepositoryHookRequest)void postUpdate(@Nonnull GitWorkTree workTree, @Nonnull List<com.atlassian.bitbucket.repository.RefChange> refChanges)
GitWorkTree.publish(PublishGitWorkTreeParameters) after the work tree ref has been published.
Implementors should call RepositoryHookService.postUpdate(RepositoryHookRequest) with an appropriate
RepositoryHookRequest.workTree - the work tree for which a refChange has been publishedrefChanges - the ref changes that have been publishedRepositoryHookService.postUpdate(RepositoryHookRequest)Copyright © 2021 Atlassian. All rights reserved.