Content-Length: 333947 | pFad | http://github.com/coderabbitai/bitbucket/blob/main/#start-of-content

6872CEAE GitHub - coderabbitai/bitbucket: CodeRabbit's TypeScript API client for connecting to Bitbucket Cloud and Bitbucket Data Center
Skip to content

coderabbitai/bitbucket

Repository files navigation

@coderabbitai/bitbucket

Node.js CI Dependabot Updates GitHub Pages GitHub Downloads NPM Downloads CodeRabbit Pull Request Reviews

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 } from "@coderabbitai/bitbucket/cloud"
import { 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/server"
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}`,
	},
})

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/coderabbitai/bitbucket/blob/main/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy