Interface GitRebaseHookRequest

All Superinterfaces:
com.atlassian.bitbucket.hook.repository.RepositoryHookRequest

public interface GitRebaseHookRequest extends com.atlassian.bitbucket.hook.repository.RepositoryHookRequest
Request that is provided to repository-hook plugin modules when a branch is rebased.
Since:
5.5
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.bitbucket.repository.Branch
     
     
     
    com.atlassian.bitbucket.repository.Repository
     
    boolean
     

    Methods inherited from interface com.atlassian.bitbucket.hook.repository.RepositoryHookRequest

    getContext, getRefChanges, getRepository, getScmHookDetails, getTrigger, isDryRun
  • Method Details

    • getBranch

      @Nonnull com.atlassian.bitbucket.repository.Branch getBranch()
      Returns:
      the branch which was rebased
    • getCommitId

      @Nonnull Optional<String> getCommitId()
      Returns:
      the tip of the newly-rebased commits, or empty() if this is a dry-run request
    • getUpstream

      @Nonnull String getUpstream()
      Returns:
      the upstream commit the branch's unique commits were rebased against
    • getUpstreamRepository

      @Nonnull com.atlassian.bitbucket.repository.Repository getUpstreamRepository()
      Returns:
      the upstream repository, which may or may not be the same as RepositoryHookRequest.getRepository() but will never be null
    • isCrossRepository

      boolean isCrossRepository()
      Returns:
      true if branch and upstream are in different repositories; otherwise, false