Lesstep
Bitbucket Cloud · merged pull requests · Checked November 10, 2026

Bitbucket Cloud: a pull request merged by itself

Nobody pressed Merge, yet the pull request says MERGED, perhaps with its merge checks still unmet. Bitbucket Cloud does this on purpose: once the destination branch has every commit the pull request would bring, or the pull request has no changes left, there is nothing more for it to merge, and Bitbucket marks it as merged (Atlassian's knowledge base, Pull request merged automatically).

The three ways it happens

In the IDE: Pull Request Inbox for Bitbucket, a plugin for JetBrains IDEs, lists the pull requests that wait for your review, with their diffs and which merge checks block them, so you review each one before it merges.

Tell which it was

Take the source branches of the two pull requests and find where they meet:

git fetch origin
git merge-base origin/branch1 origin/branch2
git log --oneline $(git merge-base origin/branch1 origin/branch2)..origin/branch1
git log --oneline $(git merge-base origin/branch1 origin/branch2)..origin/branch2

The branch of the pull request that merged by itself has no commits after the merge base; the other one has them all. If the destination has a merge commit of the source branch that no pull request made, it was merged outside: a local git merge feature writes Git's own message, Merge branch 'feature'. If there is no second pull request, look at the source branch's history for a force push that dropped the commits.

Keep it from happening

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, and shows next to each which merge checks pass and which block the merge. 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: Changes missing from a branch · No Merge button, or a greyed-out one · Merge checks · Changes that are already merged · 日本語