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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested 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 Type
    Method
    Description
    int
    Retrieves the expected version for the pull request.

    Methods inherited from class com.atlassian.bitbucket.pull.AbstractPullRequestRequest

    getPullRequestId, getRepositoryId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getVersion

      public int getVersion()
      Retrieves the expected version for the pull request. If the pull request's actual version does not match, a PullRequestOutOfDateException will be thrown to indicate that the rebase was requested on stale data.
      Returns:
      the pull request version to rebase