GitLab: a merge request blocked by another merge request
A merge request that depends on other merge requests cannot merge until they have all merged. The merge check is called Merge request dependencies must be merged; in the API it is detailed_merge_status merge_request_blocked ("Blocked by another merge request"), and the merge page says Merge blocked: Merge all open dependent merge requests, and remove all closed dependencies. (GitLab docs: merge request dependencies, checked November 19, 2026).
What blocks, and what does not
- Open blockers stop the merge until they merge.
- Closed blockers stop it too. GitLab counts a closed merge request as not merged, because it may have closed without its planned work. If it is no longer relevant, remove it as a dependency.
- Nested dependencies: since GitLab 16.7 a blocker's own blockers count, up to 10 blockers per merge request and 10 merge requests blocked by one. They do not show in the GitLab page (epic 5308 proposes it), so a merge request can look unblocked from its own page while one further down the chain is not merged.
- Circular dependencies are possible: a merge request cannot depend on itself, but A can depend on B and B on A, and neither can then merge.
- Tier: the check needs GitLab Premium or Ultimate on the dependent merge request's project. A Premium project's merge request can depend on any merge request, even one in a Free project; a Free project's merge request cannot depend on others. In the source, the check is inactive unless the feature is available (
check_blocked_by_other_mrs_service.rb; its failure text is "All merge requests that block this one must be merged.").
To see that another merge request is what blocks this one: Merge Request (MR) Review Inbox for GitLab, a plugin for JetBrains IDEs, lists the merge checks from detailed_merge_status with the blocking ones first.
Find the blockers
On the merge request page, the merge request reports area says Depends on 1 merge request being merged; Expand lists each blocker with title, milestone, assignee and pipeline status. A blocker you may not view is listed as 1 inaccessible merge request.
What to do
- Merge the blockers first, in the order the work needs.
- Remove a dependency that no longer applies: open the merge request, select Edit, scroll to Merge request dependencies, select Remove next to each reference, then Save changes. You can remove an inaccessible one too. You need a role that may edit merge requests in the project.
- Add one the same way, by pasting
!1234,group/project!1234or the full URL in Merge request dependencies. - Dependencies are not kept when a project is exported and imported (issue 12549), so set them again on the new project.
GitLab merge requests in IntelliJ IDEA
Merge Request (MR) Review Inbox for GitLab, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a merge request's merge checks before you merge: approvals, requested changes, unresolved threads, the pipeline, conflicts, and GitLab's other reasons from detailed_merge_status, with the ones that block the merge first, and the head pipeline with a link. A merge request that waits for another one shows up there as blocked, so you do not find out by pressing Merge. Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.
More: GitLab merge refused (405, 409, 422) · GitLab "Merge request must not be draft" · GitLab status checks must pass (status_checks_must_pass) · GitLab auto-merge refused (405) or canceled