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 SummaryNested ClassesNested classes/interfaces inherited from class com.atlassian.bitbucket.event.branch.BranchHookRequestBranchHookRequest.AbstractBuilder<B extends BranchHookRequest.AbstractBuilder<B>>
- 
Method SummaryMethods inherited from class com.atlassian.bitbucket.event.branch.BranchHookRequestgetBranchMethods inherited from class com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequestgetContext, getRepository, getScmHookDetails, getTrigger, isDryRun
- 
Method Details- 
getRefChanges- Specified by:
- getRefChangesin interface- RepositoryHookRequest
- Overrides:
- getRefChangesin class- AbstractRepositoryHookRequest
- 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().
 
 
-