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 Summary
Modifier and TypeMethodDescriptionvoidpostUpdate(GitWorkTree workTree, List<com.atlassian.bitbucket.repository.RefChange> refChanges) Called byGitWorkTree.publish(PublishGitWorkTreeParameters)after the work tree ref has been published.booleanpreUpdate(GitWorkTree workTree, List<com.atlassian.bitbucket.repository.RefChange> refChanges) Called byGitWorkTree.publish(PublishGitWorkTreeParameters)before the work tree ref is published.
-
Method Details
-
preUpdate
boolean preUpdate(@Nonnull GitWorkTree workTree, @Nonnull List<com.atlassian.bitbucket.repository.RefChange> refChanges) Called byGitWorkTree.publish(PublishGitWorkTreeParameters)before the work tree ref is published. Implementors should callRepositoryHookService.preUpdate(RepositoryHookRequest)with an appropriateRepositoryHookRequest.- Parameters:
workTree- the work tree for which arefChangeare about to be publishedrefChanges- theref changesabout to be published- Returns:
trueif the pre-update hooks accepted the change, otherwisefalse- See Also:
-
RepositoryHookService.preUpdate(RepositoryHookRequest)
-
postUpdate
void postUpdate(@Nonnull GitWorkTree workTree, @Nonnull List<com.atlassian.bitbucket.repository.RefChange> refChanges) Called byGitWorkTree.publish(PublishGitWorkTreeParameters)after the work tree ref has been published. Implementors should callRepositoryHookService.postUpdate(RepositoryHookRequest)with an appropriateRepositoryHookRequest.- Parameters:
workTree- the work tree for which arefChangehas been publishedrefChanges- theref changesthat have been published- See Also:
-
RepositoryHookService.postUpdate(RepositoryHookRequest)
-