Skip to content
bitbucket / 1.0.0

bitbucket 1.0.0

Install from the command line:
Learn more about npm packages
$ npm install @coderabbitai/bitbucket@1.0.0
Install via package.json:
"@coderabbitai/bitbucket": "1.0.0"

About this version

@coderabbitai/bitbucket

Node.js CI Dependabot Updates GitHub Pages

CodeRabbit's TypeScript API client for connecting to Bitbucket Cloud and Bitbucket Data Center.

This client is auto-generated by openapi-typescript using the OpenAPI schema from the documentation above.

Usage

pnpm i @coderabbitai/bitbucket

Cloud

import { createBitbucketCloudClient, toBase64 } from "@coderabbitai/bitbucket"
import {
	BITBUCKET_CLOUD_APP_PASSWORD,
	BITBUCKET_CLOUD_URL,
	BITBUCKET_CLOUD_USERNAME,
} from "./env.js"

const basic = toBase64(
	BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD,
)

const client = createBitbucketCloudClient({
	baseUrl: BITBUCKET_CLOUD_URL.toString(),
	headers: { Accept: "application/json", Authorization: `Basic ${basic}` },
})

Server

import { createBitbucketServerClient } from "@coderabbitai/bitbucket"
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "./env.js"

const server = createBitbucketServerClient({
	baseUrl: BITBUCKET_SERVER_URL,
	headers: {
		Accept: "application/json",
		Authorization: `Bearer ${BITBUCKET_SERVER_TOKEN}`,
	},
})

Details


Assets

  • bitbucket-1.0.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all