Bitbucket

Produit & Ingénierie

Six Bitbucket KPIs selected to drive software delivery throughput, code review health, and pipeline reliability per developer, with the selection criteria made explicit.

6 available indicators

Indicator Object Type Formula Unit
PRs Merged Number of pull requests merged by the developer. Pullrequest Lagging COUNT count
PR Cycle Time Average time in hours from pull request creation to merge. Pullrequest Lagging AVG(cycle_time_hours) hours
Review Turnaround Average time in hours from pull request creation to first reviewer approval. Pullrequest Leading AVG(review_turnaround_hours) hours
Review Participation Rate Ratio of pull requests approved over pull requests assigned as reviewer. Pullrequest Leading COUNT_RATIO %
PRs Opened Number of pull requests opened by the developer in the period. Pullrequest Leading COUNT count
Pipeline Success Rate Ratio of successful pipelines over total pipelines triggered by the developer. Pipeline Lagging COUNT_RATIO %

Bitbucket exposes several object types: repositories, pull requests, commits, pipelines, pipeline steps, issues, and branches. This integration focuses on pull requests and pipelines, the two objects that carry the most direct and attributable performance signals for software engineering teams. Commits were evaluated and excluded due to adversarial gaming risk: commit count is trivially inflated by splitting work into micro-commits, making it a poor proxy for delivery contribution. Bitbucket Issues were excluded because most engineering teams use Jira for issue tracking; the Bitbucket Issues feature is rarely populated with sufficient data density to produce reliable per-user KPIs. Six KPIs were retained, selected against three criteria: ability to attribute to an individual developer, resistance to gaming, and balance between leading and lagging indicators.

Delivery throughput: reading pull request output through paired indicators

PRs Merged counts the number of pull requests a developer has brought to completion during a given period. It is the primary output indicator of software delivery: a merged PR represents code that has passed review and entered the main branch. PR Cycle Time measures the average elapsed time between when a PR is opened and when it is merged, attributed to the PR author.

These two indicators are deliberately placed in tension. A developer with a high PRs Merged count and a low PR Cycle Time is operating efficiently: they open, review, and close work rapidly. However, a high merge count paired with an abnormally short cycle time may signal that PRs are being kept artificially small — decomposed into trivial units that merge quickly but do not correspond to meaningful increments of value. Conversely, a long cycle time with few merges may indicate that PRs are too large, difficult to review, or blocked on dependencies outside the developer's control. Reading the two indicators together surfaces the shape of a developer's delivery pattern in ways that neither metric reveals alone.

PRs Opened functions as the leading counterpart to PRs Merged. It measures development activity at the point of submission rather than completion, capturing the volume of work entering the review pipeline. When PRs Opened is significantly higher than PRs Merged over the same period, it indicates PR accumulation: work is being initiated but not closed, either because review is slow, because PRs are too large, or because the developer's output is outpacing the team's review capacity. This divergence between the two counts is the diagnostic signal; neither count in isolation communicates it.

Code review health: the reviewer's contribution as a first-class signal

Review Turnaround measures the average elapsed time between when a pull request is opened and when the first reviewer approval is recorded. It is attributed to the reviewer, not the PR author. Review Participation Rate measures the proportion of PRs for which a developer assigned as reviewer actually submits an approval within the review period.

These two indicators address a dimension of engineering performance that throughput metrics cannot capture: the quality and timeliness of the review function. A team may ship code frequently while reviews are rubber-stamped or delayed for days, producing a false picture of delivery health. Review Turnaround is a leading indicator in the engineering flow: a consistent increase in turnaround time precedes a degradation of overall PR Cycle Time, since PRs cannot merge until at least one approval is given. Review Participation Rate establishes whether the turnaround figures reflect genuine engagement or a pattern of avoidance where assigned reviewers defer to others.

The gaming risk on Review Turnaround is low relative to throughput indicators. A reviewer cannot sustainably approve PRs without reading them — at least not without producing downstream bugs that become visible through pipeline failures or post-merge regressions. This is why Review Participation Rate and Pipeline Success Rate act as structural counterbalances: rubber-stamp approvals leave an audit trail, and the consequences of approving unstable code appear in the pipeline.

Pipeline reliability: build stability as a quality signal

Pipeline Success Rate measures the proportion of pipelines triggered by a developer that complete successfully. It is attributed to the pipeline creator, which in the case of push-triggered pipelines corresponds to the commit author, and in the case of manually triggered pipelines corresponds to the person who initiated the run. This indicator captures a dimension of quality that pull request metrics do not: a developer may merge PRs at a high rate while consistently triggering pipelines that fail, indicating that code reaching the main branch is not stable at the point of integration.

The gaming risk on this indicator is structurally low. No developer benefits from deliberately failing pipelines, and failure events generate immediate visibility for the team. Pipeline Success Rate is therefore a credible lagging quality signal that complements the throughput indicators: a developer with high PRs Merged and a low Pipeline Success Rate is shipping volume at the expense of stability. The combination surfaces a quality-quantity tradeoff that neither metric exposes individually.

Scope and limits of the integration

Bitbucket records pull request lifecycle events and pipeline execution results, but does not measure the quality of the code itself or the depth of review commentary. A merged PR may represent a well-considered architectural change or a trivial configuration update; a successful pipeline verifies that the code passes defined automated tests but does not validate that those tests are adequate. The integration captures activity and flow, not substance.

Contributions that do not flow through pull requests — direct commits to main, infrastructure changes made outside the repository, documentation written in external wikis — remain invisible to this integration. Similarly, work that is highly collaborative but informally distributed, such as pair programming sessions or architectural discussions that precede code, does not appear in any of these KPIs. The reliability of Review Turnaround in particular depends on reviewers being formally assigned through Bitbucket's reviewer assignment mechanism rather than informally recruited via chat. Teams that rely on ad hoc review coordination outside the platform will see partial data. The value of these indicators scales directly with the discipline with which the team uses Bitbucket's native workflows.