Class PullRequestRebaseRequest
java.lang.Object
com.atlassian.bitbucket.pull.AbstractPullRequestRequest
com.atlassian.bitbucket.scm.git.pull.PullRequestRebaseRequest
public class PullRequestRebaseRequest
extends com.atlassian.bitbucket.pull.AbstractPullRequestRequest
Describes a request to
rebase a PullRequest.- Since:
- 5.5
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.bitbucket.pull.AbstractPullRequestRequest
com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<T extends com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<T>> -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the expectedversionfor the pull request.Methods inherited from class com.atlassian.bitbucket.pull.AbstractPullRequestRequest
getPullRequestId, getRepositoryId
-
Method Details
-
getVersion
public int getVersion()Retrieves the expectedversionfor the pull request. If the pull request's actual version does not match, aPullRequestOutOfDateExceptionwill be thrown to indicate that the rebase was requested on stale data.- Returns:
- the pull request version to rebase
-