Class BranchCreationHookRequest
java.lang.Object
com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
com.atlassian.bitbucket.event.branch.BranchHookRequest
com.atlassian.bitbucket.event.branch.BranchCreationHookRequest
- All Implemented Interfaces:
RepositoryHookRequest
A
hook request that is raised just before a branch is created using the UI or REST.
Branches 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.branch.BranchHookRequest
BranchHookRequest.AbstractBuilder<B extends BranchHookRequest.AbstractBuilder<B>> -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.branch.BranchHookRequest
getBranchMethods 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().
-