Class SimpleMergeHookRequest
java.lang.Object
com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
com.atlassian.bitbucket.hook.repository.SimpleMergeHookRequest
- All Implemented Interfaces:
- MergeHookRequest,- RepositoryHookRequest
public class SimpleMergeHookRequest
extends AbstractRepositoryHookRequest
implements MergeHookRequest
Basic implementation of 
MergeHookRequest- Since:
- 5.0
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequestAbstractRepositoryHookRequest.AbstractBuilder<B extends AbstractRepositoryHookRequest.AbstractBuilder<B>>
- 
Method SummaryMethods inherited from class com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequestgetContext, getRepository, getScmHookDetails, getTrigger, isDryRunMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bitbucket.hook.repository.RepositoryHookRequestgetContext, getRepository, getScmHookDetails, getTrigger, isDryRun
- 
Method Details- 
getFromRef- Specified by:
- getFromRefin interface- MergeHookRequest
- Returns:
- the branch or tag being merged into the target branch
 
- 
getMergeHash- Specified by:
- getMergeHashin interface- MergeHookRequest
- Returns:
- the merge commit hash. Can be Optional.empty()if this is adry-runrequest.
 
- 
getMessage- Specified by:
- getMessagein interface- MergeHookRequest
- Returns:
- the commit message. Can be Optional.empty()if this is adry-runrequest.
 
- 
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().
 
- 
getStrategyId- Specified by:
- getStrategyIdin interface- MergeHookRequest
- Returns:
- the merge strategy ID
- Since:
- 5.5
 
- 
getToRef- Specified by:
- getToRefin interface- MergeHookRequest
- Returns:
- the target branch
 
- 
isCrossRepositorypublic boolean isCrossRepository()- Specified by:
- isCrossRepositoryin interface- MergeHookRequest
- Returns:
- trueif the- from-refand the- to-refare in different repositories, otherwise- false
 
 
-