Class SimplePullRequestMergeHookRequest
java.lang.Object
com.atlassian.bitbucket.hook.repository.AbstractRepositoryHookRequest
com.atlassian.bitbucket.hook.repository.SimplePullRequestMergeHookRequest
- All Implemented Interfaces:
- MergeHookRequest,- PullRequestMergeHookRequest,- RepositoryHookRequest
public class SimplePullRequestMergeHookRequest
extends AbstractRepositoryHookRequest
implements PullRequestMergeHookRequest
Basic implementation of 
PullRequestMergeHookRequest- 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
- Specified by:
- getFromRefin interface- PullRequestMergeHookRequest
- Returns:
- the pull request's from-ref
 
- 
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.
 
- 
getPullRequest- Specified by:
- getPullRequestin interface- PullRequestMergeHookRequest
- Returns:
- the pull request being merged
 
- 
getStrategyId- Specified by:
- getStrategyIdin interface- MergeHookRequest
- Returns:
- the merge strategy ID
- Since:
- 5.5
 
- 
getToRef- Specified by:
- getToRefin interface- MergeHookRequest
- Specified by:
- getToRefin interface- PullRequestMergeHookRequest
- Returns:
- the pull request's to-ref
 
- 
isAutoMergepublic boolean isAutoMerge()- Specified by:
- isAutoMergein interface- PullRequestMergeHookRequest
- Returns:
- if the pull-request is being auto-merged
- Since:
- 9.5
- See Also:
 
- 
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().
 
- 
isCrossRepositorypublic boolean isCrossRepository()- Specified by:
- isCrossRepositoryin interface- MergeHookRequest
- Returns:
- trueif the- from-refand the- to-refare in different repositories, otherwise- false
 
 
-