class RepositoryServices extends AnyRef
- Alphabetic
- By Inheritance
- RepositoryServices
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RepositoryServices(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 createKey(username: String, repositorySlug: String, key: String, label: String = "Codacy Key"): RequestResponse[DeployKey]
- 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 getMergeBase(username: String, repositorySlug: String, firstCommitSha: String, secondCommitSha: String): RequestResponse[SimpleCommit]
Looks for common ancestor of two commits
Looks for common ancestor of two commits
- username
The username or the UUID of the account surrounded by curly-braces
- repositorySlug
The repository slug or the UUID of the repository surrounded by curly-braces
- firstCommitSha
First of the two commit SHAs
- secondCommitSha
Second of the two commit SHAs
- def getRepositories(ownerInfo: OwnerInfo, pageLength: Option[Int] = Option(DEFAULT_PAGE_LENGTH), userRole: Option[Role] = None, pageRequest: Option[PageRequest] = None, sortBy: Option[String] = Option("-updated_on"), repositorySlug: Option[String] = None): RequestResponse[Seq[Repository]]
Gets the list of the user's repositories.
Gets the list of the user's repositories. Private repositories only appear on this list if the caller is authenticated and is authorized to view the repository.
- ownerInfo
The username or the UUID of the account surrounded by curly-braces
- pageLength
The number of items of the page to be returned, if None defaults to 100
- userRole
The role of the user to filter the repositories
- pageRequest
The cursor to get a page of repositories
- sortBy
The name of the field to sort the repositories. By default it is done in ascending order and it should be used an hyphen to reverse the order. Also, by default is ordered by last updated date
- repositorySlug
The slug of the repository to search the repository. It finds any case-insensitive text that contains this string
- returns
a RequestResponse with a sequence of repositories
- def getRepository(workspace: String, repositorySlug: String): RequestResponse[Repository]
Retrieve the repository matching the supplied owner and repositorySlug.
Retrieve the repository matching the supplied owner and repositorySlug.
- workspace
The workspace ID (slug) or the workspace UUID surrounded by curly-braces.
- repositorySlug
The repository slug or the UUID of the repository surrounded by curly-braces
- returns
A RequestResponse with the repository data
- def hasRepositoryAdminPermission(username: String, repositorySlug: String): Boolean
Checks if username has repository:admin permission by calling the /branch-restriction endpoint https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branch-restrictions/#api-repositories-workspace-repo-slug-branch-restrictions-get
Checks if username has repository:admin permission by calling the /branch-restriction endpoint https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branch-restrictions/#api-repositories-workspace-repo-slug-branch-restrictions-get
- username
The username or the UUID of the account surrounded by curly-braces
- repositorySlug
The repository slug or the UUID of the repository surrounded by curly-braces
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- 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()