@managed-api/bitbucket-on-premise-v1-sr-connect
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ScriptRunner Connect Managed API for Bitbucket On-Premise

Managed API for Bitbucket On-Premise is an API Client for Bitbucket On-Premise 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

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 { BitbucketOnPremiseApi } from '@managed-api/bitbucket-on-premise-v1-sr-connect';

export default async function() {
    const api = new BitbucketOnPremiseApi('API_CONNECTION_ID');
}

Contact

Feel free to drop ideas, suggestions or improvements into our Slack community channel.

Changelog

  • 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.
  • Added Paged API limit, start parameters for the following methods with paged response:
    • Repository.Commit.getRepositoryCommits
    • Repository.getRepositories
    • Repository.PullRequest.getPullRequests
    • Repository.PullRequest.getActivities
    • Repository.PullRequest.Comment.getComments
    • Repository.PullRequest.Commit.getCommits
    • Project.getProjects
  • Added the following Repository.Commit methods:

Copyright Adaptavist 2022 (c) All rights reserved

Readme

Keywords

none

Package Sidebar

Install

npm i @managed-api/bitbucket-on-premise-v1-sr-connect

Weekly Downloads

1

Version

2.0.0

License

UNLICENSED

Unpacked Size

9.4 kB

Total Files

6

Last publish

Collaborators

  • mtapsi
  • jtrumm
  • theshumanator
  • ssarapov
  • adaptavist-horizon-dev
  • jsaks
  • eknoll