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 TypeMethodDescriptioncom.atlassian.bitbucket.repository.Branchcom.atlassian.bitbucket.repository.RepositorybooleanMethods 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
- Returns:
- the tip of the newly-rebased commits, or
empty()if this is adry-runrequest
-
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 benull
-
isCrossRepository
boolean isCrossRepository()
-