Interface MergeHookRequest
- All Superinterfaces:
RepositoryHookRequest
- All Known Subinterfaces:
PullRequestMergeHookRequest
- All Known Implementing Classes:
SimpleMergeHookRequest
,SimplePullRequestMergeHookRequest
Request that is provided to
repository-hook
plugin modules when two branches are merged in a repository.- Since:
- 5.0
- See Also:
-
Method Summary
Methods inherited from interface com.atlassian.bitbucket.hook.repository.RepositoryHookRequest
getContext, getRefChanges, getRepository, getScmHookDetails, getTrigger, isDryRun
-
Method Details
-
getFromRef
- Returns:
- the branch or tag being merged into the
target branch
-
getMergeHash
- Returns:
- the merge commit hash. Can be
Optional.empty()
if this is adry-run
request.
-
getMessage
- Returns:
- the commit message. Can be
Optional.empty()
if this is adry-run
request.
-
getStrategyId
- Returns:
- the merge strategy ID
- Since:
- 5.5
-
getToRef
- Returns:
- the target branch
-
isCrossRepository
boolean isCrossRepository()
-