Introduce CI_MERGE_REQUEST_DRAFT predefined variable
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Introduce CI_MERGE_REQUEST_DRAFT predefined variable
Adds a new predefined variable, CI_MERGE_REQUEST_DRAFT, which indicates whether a merge request is a draft.
Issue: #275981 (closed)
Screenshots or screen recordings
Screen_Recording_2025-03-01_at_22.57.12
How to set up and validate locally
- Create a merge request pipeline and verify that the CI_MERGE_REQUEST_DRAFT variable correctly reflects whether the merge request is in draft status or not.
Edited by Ivane Gkomarteli