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
Nested ClassesModifier and TypeClassDescriptionprotected static classSimpleRepositoryHookRequest.AbstractBuilder<B extends SimpleRepositoryHookRequest.AbstractBuilder<B>>static class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
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:
getRefChangesin interfaceRepositoryHookRequest- Overrides:
getRefChangesin classAbstractRepositoryHookRequest- Returns:
- the proposed ref changes. Can be
emptyfor 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:
getScmHookDetailsin interfaceRepositoryHookRequest- Overrides:
getScmHookDetailsin 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).
-