PR Lens

Setup

PR Lens for Bitbucket

Connect a Bitbucket repository and every pull request arrives drawn: architecture and data flow, as one comment on the pull request itself.

  • Redrawn on every push. Comment @pr-lens draw for one by hand.
  • Comments post as you — Bitbucket has no app identity, so use a dedicated account if you would rather they did not.
  • Bitbucket shows plain Markdown, so the diagrams arrive as pictures that link to the canvas.
Paste a token instead

For a repository you would rather not tie to an account. Comments then post as the token, so name it PR Lens when you create it.

Connect Bitbucket

Paste a repository access token and PR Lens does the rest.

Or paste the repository's URL.

Repository settings → Access tokens, with pull requests write and webhooks read and write.

Turning it off

Remove the PR Lens webhook under the repository's Settings → Webhooks, and revoke PR Lens under Personal settings → Authorized applications. For a pasted token, deleting the token stops it too.