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

GitLab: a draft merge request cannot be merged

A merge request marked Draft cannot merge until the flag is removed, even when every other merge check passes. The API says draft_status ("Can't merge because the merge request is a draft"), the check's failure text is "The merge request must not be a draft.", and the merge page says Merge request must not be draft. (GitLab docs: draft merge requests, checked November 19, 2026).

Why a merge request you did not mark is a draft

To see that a merge request is still a draft, and to mark it ready: 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.

Mark it ready

Drafts and pipelines

A draft runs the same pipelines as a ready merge request. To save compute until it is ready, use workflow:rules with CI_MERGE_REQUEST_DRAFT (added in GitLab 17.10; it recognises every draft form above):

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_DRAFT == "true"
      when: never
    - when: always

A merge request without a pipeline can then not merge when Pipelines must succeed is on; see the pipeline that never comes.

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. It can also mark a merge request as ready, or as draft, without opening GitLab (Pro). 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 "A CI/CD pipeline must run and be successful before merge" · GitLab merge blocked by the title pattern (title_regex) · GitLab auto-merge refused (405) or canceled