public interface

MergeHookRequest

implements RepositoryHookRequest
com.atlassian.bitbucket.hook.repository.MergeHookRequest
Known Indirect Subclasses

Class Overview

Request that is provided to repository-hook plugin modules when two branches are merged in a repository.

See Also

Summary

Public Methods
@Nonnull RepositoryRef getFromRef()
@Nonnull Optional<String> getMergeHash()
@Nonnull Optional<String> getMessage()
@Nonnull Optional<String> getStrategyId()
@Nonnull RepositoryRef getToRef()
boolean isCrossRepository()
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.hook.repository.RepositoryHookRequest

Public Methods

@Nonnull public RepositoryRef getFromRef ()

Returns

@Nonnull public Optional<String> getMergeHash ()

Returns

@Nonnull public Optional<String> getMessage ()

Returns

@Nonnull public Optional<String> getStrategyId ()

Returns
  • the merge strategy ID

@Nonnull public RepositoryRef getToRef ()

Returns
  • the target branch

public boolean isCrossRepository ()

Returns
  • true if the from-ref and the to-ref are in different repositories, otherwise false