Skip to main content
Version: v2 (current)

Bitbucket Integration

PanDev Metrics integration with Bitbucket allows you to analyze development activity, pull requests, and automatically add quality metrics to code reviews.

Integration Features

  • Automatic PR Comments — adding code quality metrics to pull requests
  • Repository Analytics — analysis of commits, branches, and contributors
  • Code Review Metrics — review time, number of comments, PR cycle time
  • Privacy — data is collected only from your repositories

Supported Versions

  • Bitbucket Cloud
  • Bitbucket Data Center / Server

Integration Setup

For Bitbucket Cloud

Step 1: Create App Password

  1. Log in to Bitbucket Cloud
  2. Go to Personal Settings → App passwords
  3. Click Create app password
  4. Configure permissions:
PermissionAccess
RepositoriesRead, Write
Pull requestsRead, Write
WebhooksRead and write
  1. Click Create and save the password

Step 2: Connect in PanDev Metrics

  1. Go to Settings → Integrations → Bitbucket
  2. Select Bitbucket Cloud
  3. Enter:
    • Username — your Bitbucket username
    • App Password — password from step 1
  4. Click Check Connection and Activate

For Bitbucket Data Center / Server

Step 1: Create Personal Access Token

  1. Log in to Bitbucket Server
  2. Go to Manage Account → Personal access tokens
  3. Click Create a token
  4. Configure permissions:
PermissionAccess
RepositoryRead, Write
Pull RequestRead, Write
  1. Click Create and save the token

Step 2: Connect in PanDev Metrics

  1. Go to Settings → Integrations → Bitbucket
  2. Select Bitbucket Server
  3. Enter:
    • Server URL — Your server URL (e.g., https://bitbucket.company.local)
    • Personal Access Token — token from step 1
  4. Click Check Connection and Activate

Step 3: Select Repositories

  1. Select repositories to monitor
  2. Configure branch filters (optional)
  3. Enable/disable automatic PR comments
  4. Save settings

Tracked Metrics

  • Commits — number and frequency of commits by developers
  • Pull Requests — PR cycle time, time to merge, number of revisions
  • Code Review — review time, number of comments
  • Activity — activity trends by repositories

FAQ

What is the difference between Bitbucket Cloud and Server? Bitbucket Cloud is the cloud version (bitbucket.org). Bitbucket Data Center/Server is the self-hosted version on your infrastructure.

How often is data updated? Data is updated in real-time via Bitbucket webhooks.

Can I limit integration to specific repositories? Yes, at the repository selection stage, you can select only the ones you need.