Class TagCreationHookRequest
java.lang.Object
com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
com.atlassian.bitbucket.event.tag.TagHookRequest
com.atlassian.bitbucket.event.tag.TagCreationHookRequest
- All Implemented Interfaces:
RepositoryHookRequest
A
hook request that is raised just before a tag is created using the UI or REST.
Tags created by pushing will trigger a standard RepositoryHookRequest and not this specific type.- Since:
- 5.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.bitbucket.event.tag.TagHookRequest
TagHookRequest.AbstractBuilder<B extends TagHookRequest.AbstractBuilder<B>> -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.tag.TagHookRequest
getTagMethods inherited from class com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
getContext, getRepository, getScmHookDetails, getTrigger, isDryRun
-
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().
-