class PullRequestServices extends AnyRef
- Alphabetic
- By Inheritance
- PullRequestServices
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PullRequestServices(client: BitbucketClient)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def create(owner: String, repository: String, title: String, sourceBranch: String, destinationBranch: String): RequestResponse[JsObject]
- def createLineComment(author: String, repo: String, prId: Int, body: String, file: Option[String], line: Option[Int]): RequestResponse[PullRequestComment]
- def createPullRequestComment(author: String, repo: String, prId: Int, content: String): RequestResponse[PullRequestComment]
- def decline(owner: String, repository: String, prId: Long): RequestResponse[JsObject]
- def deleteApprove(owner: String, repository: String, prId: Long): RequestResponse[Boolean]
- def deleteComment(author: String, repository: String, pullRequestId: Int, commentId: Long): RequestResponse[Boolean]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getPullRequest(workspace: String, repositorySlug: String, prId: Int): RequestResponse[PullRequest]
Returns a specific pullRequest for a specified repository.
Returns a specific pullRequest for a specified repository.
- workspace
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: {workspace UUID}
- repositorySlug
This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: {repository UUID}
- prId
The id of the specific pr to retrieve.
- returns
The PullRequest that contains the data for the required id, the result is wrapped in a RequestResponse type.
- def getPullRequestCommits(owner: String, repository: String, prId: Long, size: Int = 100): RequestResponse[Seq[SimpleCommit]]
- def getPullRequests(workspace: String, repositorySlug: String, pageLength: Int = DEFAULT_PAGE_LENGTH, pageRequest: Option[PageRequest] = None, states: Seq[String] = Seq("OPEN")): RequestResponse[Seq[PullRequest]]
Returns all pull requests on the specified repository.
Returns all pull requests on the specified repository. By default only open pull requests are returned. This can be controlled using the states parameter.
- workspace
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: {workspace UUID}
- repositorySlug
This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: {repository UUID}
- pageLength
The number of items of the page to be returned, it defaults to DEFAULT_PAGE_LENGTH
- pageRequest
The cursor to get a page of repositories
- states
Only return pull requests that are in these states. Valid values: MERGED, SUPERSEDED, OPEN, DECLINED
- def getPullRequestsReviewers(owner: String, repository: String, prId: Long): RequestResponse[PullRequestReviewers]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listComments(author: String, repository: String, pullRequestId: Int): RequestResponse[Seq[PullRequestComment]]
- def merge(owner: String, repository: String, prId: Long): RequestResponse[JsObject]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def postApprove(owner: String, repository: String, prId: Long): RequestResponse[JsObject]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()