Skip to main content
Deno 2 is finally here 🎉️
Learn more

BitBucket Pull Request

Script to automatically make a pull request on bitbucket.

Table of Contents

Install

Binary

Head to the Releases and download the binary and run it.

Deno

Either clone this repository or get the source code from the Releases.

Optional: deno install --allow-net lib/main.ts

Using

Instructions:

bitbucket-pull-request --help

You also need an app password for this. With the following permissions:

  • --defaultReviewers false

    • pullrequest WRITE permission.
  • --defaultReviewers true

    • same as above
    • account READ permission.

Dependency

You can also this as a dependency of your Deno scripts. Take a look at the what it exports.

import { MakePullRequest, version } from "mod.ts";
import type { Config } from "mod.ts";

console.log(`The current version is ${version}`).

const config: Config = {
  // Config types
}

const data = await (new MakePullRequest(config)).execute();
console.log(data);