Bitbucket

Jasper code reviews on Bitbucket Cloud pull requests.

What it does

  • Reviews. When a pull request is created or gets new commits in a repository with reviews on, Jasper reviews it.
  • Comments and build status. Findings Jasper wants answered are posted as inline comments on their lines, the summary as a pull request comment, and a Jasper Review build status on the head commit. Add a merge check for passing builds in the repository's settings to hold merges on it.
  • Pipelines. Bitbucket Pipelines and other build statuses on the reviewed commit are shown on the review in Jasper, read only.
  • Reviews page. Bitbucket reviews appear on the Reviews page next to GitHub ones, labelled Bitbucket.

Before you start

  • You need to be an owner or admin of your Jasper organisation. Bitbucket is off until an admin turns it on in Settings → Features.
  • On Bitbucket you need admin access to each repository Jasper should review (adding a webhook needs it).
  • Bitbucket Cloud only. Bitbucket Server and Data Center are not supported.

1. Connect

Open Settings → Bitbucket, click Connect Bitbucket and grant access. Jasper asks to read your account and workspaces, read and write repositories and pull requests, and manage webhooks.

2. Choose repositories

  1. Click Load repositories. Jasper lists the repositories you administer in your workspaces.
  2. Click Reviews off, turn on next to a repository. Jasper adds a webhook to it, signed with a secret only Jasper and Bitbucket know.

Turning reviews off removes the webhook.

Your data and disconnecting

  • Access and refresh tokens and the webhook secret are stored encrypted.
  • Disconnect removes Jasper's webhooks and deletes the tokens and secret. Past reviews stay in Jasper. To withdraw the grant on Bitbucket too, revoke Jasper under Personal settings → App authorizations on bitbucket.org.
  • Jasper keeps each webhook it receives, including refused ones, in its webhook log.

New to Jasper? try it free.

Was this page helpful?