Class SimpleRepositoryHookRequest
java.lang.Object
com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
com.atlassian.bitbucket.hook.repository.SimpleRepositoryHookRequest
- All Implemented Interfaces:
RepositoryHookRequest
- Direct Known Subclasses:
RepositoryPushHookRequest
Basic implementation of
RepositoryHookRequest
- Since:
- 5.0
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
SimpleRepositoryHookRequest.AbstractBuilder<B extends SimpleRepositoryHookRequest.AbstractBuilder<B>>
static class
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
getContext, getRepository, getTrigger, isDryRun
-
Constructor Details
-
SimpleRepositoryHookRequest
-
-
Method Details
-
getRefChanges
- Specified by:
getRefChanges
in interfaceRepositoryHookRequest
- Overrides:
getRefChanges
in classAbstractRepositoryHookRequest
- Returns:
- the proposed ref changes. Can be
empty
for some dry-run requests where the target hash is not yet known because the relevant commit hasn't been created yet. As an example, this is the case formerge requests
. In these cases, the specialized request type should provide sufficient information about the proposed change. ForMergeHookRequest
, this would beMergeHookRequest.getFromRef()
andMergeHookRequest.getToRef()
.
-
getScmHookDetails
- Specified by:
getScmHookDetails
in interfaceRepositoryHookRequest
- Overrides:
getScmHookDetails
in classAbstractRepositoryHookRequest
- Returns:
- SCM level hook details, if available. This will only be available when the hook is called synchronously as part of an SCM hook (such as pre-receive).
-