Lesstep
GitLab · merge requests · merge checks · pipelines · Checked November 19, 2026

GitLab: a merge request waits for a pipeline that never comes

When Pipelines must succeed is on in a project, GitLab refuses to merge a merge request until its latest pipeline has succeeded, and a merge request with no pipeline at all counts as not succeeded. The page then says A CI/CD pipeline must run and be successful before merge, or shows a spinner next to Checking pipeline status (GitLab docs: debugging CI/CD pipelines and auto-merge, checked November 19, 2026).

What each message means

To see that the pipeline is what blocks a merge request, and which pipeline it is: 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.

How the API says it

The check lives in app/services/merge_requests/mergeability/check_ci_status_service.rb; its failure text is "The pipeline must succeed." It runs only when the project requires a successful pipeline, or when the merge request is set to merge automatically with a strategy that waits for the checks. The merge request's detailed_merge_status is then:

curl -H "PRIVATE-TOKEN: your-token" "https://gitlab.com/api/v4/projects/group%2Fproject/merge_requests/42"

Which pipeline counts

What to do

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH

For the merge API's own answers to a merge that GitLab refuses, see why GitLab refused the merge.

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. The pipeline check is listed with the others, and the head pipeline has a link. 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 auto-merge refused (405) or canceled · GitLab rebase refused or failed (403, 409) · GitLab status checks must pass (status_checks_must_pass)