@Deprecated public interface PluginHookHandlerFactory
Modifier and Type | Method and Description |
---|---|
com.atlassian.bitbucket.hook.HookHandler |
create(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.hook.HookRequest hookRequest)
Deprecated.
Creates the SCM specific
handler for the SCM hook callback |
default Collection<com.atlassian.bitbucket.repository.RefChange> |
peelRefChanges(com.atlassian.bitbucket.repository.Repository repository,
Collection<com.atlassian.bitbucket.repository.RefChange> refChanges)
Deprecated.
Peels the
from and to hashes on the provided
RefChange s, ensuring they reference commits. |
@Nullable com.atlassian.bitbucket.hook.HookHandler create(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.hook.HookRequest hookRequest)
handler
for the SCM hook callbackrepository
- the repositoryhookRequest
- the hook request@Nonnull default Collection<com.atlassian.bitbucket.repository.RefChange> peelRefChanges(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull Collection<com.atlassian.bitbucket.repository.RefChange> refChanges)
from
and to
hashes on the provided
RefChange
s, ensuring they reference commits. For branches and lightweight tags, the resulting
RefChange
s are unchanged. For annotated tags, the hashes on the returned RefChange
will
be the ID of the commit that the tag references.
The default implementation returns the provided RefChange
s unchanged, which may be appropriate
for some SCMs.
repository
- the repositoryrefChanges
- the ref changes to resolveCopyright © 2021 Atlassian. All rights reserved.