Bitbucket Cloud: no Merge button, or a greyed-out one
These are two different things. With no Merge button at all, Bitbucket thinks you may not merge into the destination branch: Atlassian's knowledge base traces it to that branch's restrictions (Merge button is not visible). With a greyed-out Merge button, point at it: Must pass merge checks before merging means a merge check is unmet and the branch is set to block, and the Checks panel on the right of the pull request names which one.
No Merge button
- You are not allowed to merge into that branch. The destination branch has a branch restriction, and you are not under Merge via pull request in it. An admin opens Repository settings → Branch restrictions, edits the restriction for that branch and adds you or your group under Merge via pull request (Atlassian's knowledge base). Being a workspace admin does not skip it: in a 2022 question, a workspace admin had no Merge button until the target branch's permissions were set again (community question).
- It is a draft. A draft has Mark as ready instead; once it is ready, it merges like any other pull request (draft pull requests).
- "Couldn't load merge checks". With branch restrictions on, deleting the source branch of an open pull request made the Checks panel say so and took the Merge button away. Atlassian lists that bug as fixed (BCLOUD-21850, reported in 2022).
In the IDE: Pull Request Inbox for Bitbucket, a plugin for JetBrains IDEs, shows next to each pull request which merge checks pass and which block the merge, in words, free.
Merge greyed out
- "Must pass merge checks before merging". A merge check is unmet: approvals, builds, open tasks, changes requested, or commits behind the destination branch. Bitbucket Cloud blocks the merge for it only with Premium and the branch setting Prevent a merge with unresolved merge checks; otherwise it warns and lets you merge. The Checks panel says which check it is (which merge check stops the merge).
- Conflicts. A conflict with the destination branch keeps the pull request from merging until it is resolved (merge conflicts).
- Every pull request at once, with no merge checks set. In 2023 several workspaces saw "Must pass merge checks before merging" on every pull request without having set any check; it was an incident on Atlassian's side, fixed there (community question). When it starts for everyone on the same day, look at Bitbucket's status page before changing settings.
Merge pressed, then "Something went wrong"
If the button works but the merge fails with "Something went wrong", Atlassian names a .lock file left on the destination branch in the repository on Bitbucket's side. You can't remove it yourself: contact Atlassian support and ask them to remove the lock file from the pull request's destination branch (Atlassian's knowledge base, Something went wrong error when merging a pull request).
Bitbucket pull requests in IntelliJ IDEA
Pull Request Inbox for Bitbucket, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the pull requests that wait for your review in an IDE tool window, with their diffs and discussions. Next to each pull request it shows the merge checks in words: "1 of 2 approvals", successful builds, open tasks, commits behind the target branch, conflicts, and which of them block the merge. When Bitbucket refuses a merge, the plugin shows Bitbucket's own message in an IDE notification. The review inbox, diffs, discussions and merge checks are free; approving, commenting and merging are Pro, with a 30-day trial. It also works with Bitbucket Data Center (beta).
Get it on JetBrains Marketplace
Bitbucket and Atlassian are trademarks of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Atlassian or JetBrains.
More: a pull request merged by itself · Merge checks · Merge conflicts · Merge strategies · 日本語