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
- Log in to Bitbucket Cloud
- Go to Personal Settings → App passwords
- Click Create app password
- Configure permissions:
| Permission | Access |
|---|---|
| Repositories | Read, Write |
| Pull requests | Read, Write |
| Webhooks | Read and write |
- Click Create and save the password
Step 2: Connect in PanDev Metrics
- Go to Settings → Integrations → Bitbucket
- Select Bitbucket Cloud
- Enter:
- Username — your Bitbucket username
- App Password — password from step 1
- Click Check Connection and Activate
For Bitbucket Data Center / Server
Step 1: Create Personal Access Token
- Log in to Bitbucket Server
- Go to Manage Account → Personal access tokens
- Click Create a token
- Configure permissions:
| Permission | Access |
|---|---|
| Repository | Read, Write |
| Pull Request | Read, Write |
- Click Create and save the token
Step 2: Connect in PanDev Metrics
- Go to Settings → Integrations → Bitbucket
- Select Bitbucket Server
- Enter:
- Server URL — Your server URL (e.g.,
https://bitbucket.company.local) - Personal Access Token — token from step 1
- Server URL — Your server URL (e.g.,
- Click Check Connection and Activate
Step 3: Select Repositories
- Select repositories to monitor
- Configure branch filters (optional)
- Enable/disable automatic PR comments
- 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.