Managed API for Bitbucket Cloud is an API Client for Bitbucket Cloud by Adaptavist. You can read more about Managed APIs here.
This is ScriptRunner Connect runtime specific version of the Managed API (with sr-connect
suffix). If you want to use Managed API in any other runtime, have a look at the runtime agnostic version.
- fetch
- Repository
- createRepository
- deleteRepository
- getBranchesAndTags
- getRepositories
- getRepositoriesByWorkspace
- getRepository
- updateRepository
- Branch
- Commit
- getCommit
- getCommits
- getCommitsByFile
- Approval
- Comment
- Status
- Deployment
- Environment
- Fork
- Pipeline
- createAndInitiatePipeline
- findPipelines
- retrievePipeline
- stopPipeline
- Configuration
- Step
- Pullrequest
- Reviewer
- Tag
- User
- Workspace
In ScriptRunner Connect a Managed API is constructed for you, but if you need to construct it manually, here's how you can do it:
import { BitbucketCloudApi } from '@managed-api/bitbucket-cloud-v2-sr-connect';
export default async function() {
const api = new BitbucketCloudApi('API_CONNECTION_ID');
}
Feel free to drop ideas, suggestions or improvements into our Slack community channel.
-
-
List commits on a pull request
that can be used as
Repository.Pullrequest.Commit.getCommits
orAll.getRepositoryPullrequestCommits
. -
List commits with include/exclude that can be used as
Repository.Commit.getCommits
orAll.getRepositoryCommits
.
-
List commits on a pull request
that can be used as
-
-
List commits with include/exclude that can be used as
Repository.Commit.getCommits
orAll.getRepositoryCommits
.
-
List commits with include/exclude that can be used as
-
-
List public repositories
that can be used as
Repository.getRepositories
orAll.getRepositories
.
-
List public repositories
that can be used as
-
-
Repository.Branch.createRepositoryBranch
toRepository.Branch.createBranch
. -
Repository.Commit.getRepositoryCommits
toRepository.Commit.getCommits
.
-
-
-
Update variable for a workspace that can be used as
Workspace.Variable.updateVariable
orAll.updateWorkspaceVariable
. -
Get a branch restriction rule that can be used as
Repository.Branch.Restriction.getRestriction
orAll.getRepositoryBranchRestriction
. -
Delete a branch restriction rule that can be used as
Repository.Branch.Restriction.deleteRestriction
orAll.deleteRepositoryBranchRestriction
. -
Get an email address for current user that can be used as
User.getCurrentUserEmail
orAll.getCurrentUserEmail
. -
List email addresses for current user that can be used as
User.getCurrentUserEmails
orAll.getCurrentUserEmails
. -
Get a default reviewer that can be used as
Repository.Reviewer.Default.getReviewer
orAll.getRepositoryDefaultReviewer
. -
Add a user to the default reviewers that can be used as
Repository.Reviewer.Default.addReviewer
orAll.addRepositoryDefaultReviewer
. -
List default reviewers that can be used as
Repository.Reviewer.Default.getReviewers
orAll.getRepositoryDefaultReviewers
. -
List commits with include/exclude that can be used as
Repository.Commit.getCommits
orAll.getRepositoryCommits
.
-
Update variable for a workspace that can be used as
Copyright Adaptavist 2024 (c) All rights reserved