Know what’s blocking your pull request with the new Mergeability API
Atlassian’s Bitbucket Cloud introduces a Mergeability API to streamline pull request reviews by consolidating blocking checks into a single endpoint for clearer merge decisions.
Pull requests often stall because teams must manually verify approvals, builds, tasks, and repository rules before merging. This process requires extra effort from tools and AI assistants to gather and interpret scattered data. The new Mergeability API from Bitbucket Cloud consolidates these checks into a single endpoint, returning structured results that clearly indicate what is preventing a pull request from being merged. Each response includes a status and a blocking field, helping integrations differentiate between advisory failures and checks that currently block merging. The endpoint is read-only and does not merge pull requests or trigger custom checks, providing only a snapshot of the current state.
The Mergeability API is designed to simplify integration for external tools and AI assistants by offering a standardized way to assess pull request readiness. It does not replace existing workflows but enhances them by providing clear, actionable insights into merge barriers. Teams can use the API to build custom dashboards or automated workflows that highlight critical blockers before review. Access to the checks is available through the Mergeability REST API documentation, Atlassian MCP, and the TWG CLI, enabling developers to incorporate the data into their existing toolchains.
Bitbucket Cloud is also updating pull request merge checks to improve reliability, specifically by preventing pull requests from being merged while builds are still in progress. Previously, it was possible for a pull request to be merged even when some of its builds had not yet completed, which could introduce subtle bugs into the codebase. This change ensures that builds must finish before a pull request can be merged, reducing the risk of shipping incomplete or untested code to customers.
Pull requests serve as the central hub in Bitbucket Cloud for reviewing, discussing, and approving code contributions before they are merged into the main codebase. Initially focused on ensuring bug-free changes and proper testing, their role has expanded over time to include broader quality and compliance checks. The introduction of the Mergeability API and the updated merge checks reflects Bitbucket Cloud’s ongoing effort to provide teams with more robust tools for maintaining code quality and reducing the likelihood of errors reaching production.