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
- Title: it starts with
[Draft],Draft:or(Draft). - Commit message: a commit pushed to the source branch starts with
draft:,Draft:,fixup!orFixup!. This only turns the flag on; a later commit does not turn it off again, so after afixup!commit you have to mark the merge request ready yourself. - Quick action: someone commented
/draftin the merge request. - Menu: More actions > Mark as draft, or the Mark as draft checkbox below the title when creating or editing.
- In the API, the merge request's
draftfield is true (the olderwork_in_progressfield is deprecated).
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
- On the merge request, select Mark as ready in the upper-right corner. Developers, Maintainers and Owners also find it at the bottom of the description.
- Or comment
/ready. Or edit the title and remove[Draft],Draft:or(Draft), or clear the checkbox. - GitLab then notifies the participants and watchers of the merge request.
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