ScriptRunner Connect Managed API for Bitbucket Cloud
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.
Supported API calls
- fetch
- Repository
- User
- Workspace
Constructing Managed API
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');
}
Contact
Feel free to drop ideas, suggestions or improvements into our Slack community channel.
Changelog
2.1.0
-
Changed response type for the following methods:
2.0.1
2.0.0
-
Breaking change: URL and query string parameters are now URL encoded, meaning if you encoded them explicitly before you have to remove your own encoding, otherwise they will get double encoded.
0.12.0
-
Changed response type for following Repository methods:
0.11.0
-
Changed the name for following methods:
Repository.Branch.createRepositoryBranch
to Repository.Branch.createBranch
.Repository.Commit.getRepositoryCommits
to Repository.Commit.getCommits
.
-
Fixed the following methods:
Copyright Adaptavist 2024 (c) All rights reserved