Interface GitWorkTreeRepositoryHookInvoker

All Known Implementing Classes:
AbstractGitWorkTreeRepositoryHookInvoker

public interface GitWorkTreeRepositoryHookInvoker
Invokes repository hooks as part of publishing a work tree. Implementors are encouraged to extend AbstractGitWorkTreeRepositoryHookInvoker.
Since:
7.14
See Also:
  • Method Details

    • preUpdate

      boolean preUpdate(@Nonnull GitWorkTree workTree, @Nonnull List<com.atlassian.bitbucket.repository.RefChange> refChanges)
      Called by GitWorkTree.publish(PublishGitWorkTreeParameters) before the work tree ref is published. Implementors should call RepositoryHookService.preUpdate(RepositoryHookRequest) with an appropriate RepositoryHookRequest.
      Parameters:
      workTree - the work tree for which a refChange are about to be published
      refChanges - the ref changes about to be published
      Returns:
      true if the pre-update hooks accepted the change, otherwise false
      See Also:
      • RepositoryHookService.preUpdate(RepositoryHookRequest)
    • postUpdate

      void postUpdate(@Nonnull GitWorkTree workTree, @Nonnull List<com.atlassian.bitbucket.repository.RefChange> refChanges)
      Called by GitWorkTree.publish(PublishGitWorkTreeParameters) after the work tree ref has been published. Implementors should call RepositoryHookService.postUpdate(RepositoryHookRequest) with an appropriate RepositoryHookRequest.
      Parameters:
      workTree - the work tree for which a refChange has been published
      refChanges - the ref changes that have been published
      See Also:
      • RepositoryHookService.postUpdate(RepositoryHookRequest)