PR Lens

Setup

PR Lens for Bitbucket

Connect a Bitbucket repository and PR Lens draws every pull request for you. You get one comment on the pull request, with diagrams of how the code fits together and how data moves through it.

  • The diagrams update each time you push. To ask for one yourself, comment @pr-lens draw.
  • Comments show up under your name, because Bitbucket apps can't post as themselves. If you don't want that, connect from a separate account.
  • Bitbucket comments only show simple text and images, so the diagrams come as pictures. Each one links to the full diagram.
Paste a token instead

Use this if you don't want the repository tied to your account. Comments will post under the token's name, so call it PR Lens when you make it.

Connect Bitbucket

Paste a repository access token and PR Lens will do the rest.

Or paste the repository's URL.

Make one in Repository settings → Access tokens, with the Pull requests: Write and Webhooks: Read and write scopes.

How to turn it off

In the repository, go to Settings → Webhooks and delete the PR Lens webhook. Then go to Personal settings → Authorized applications and remove PR Lens. If you pasted a token, deleting the token also turns it off.