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