Add setting for auto-marking MRs as draft based on commit messages
-
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?
Add setting for auto-marking MRs as draft based on commit messages
Introduces a new project-level setting to control whether merge requests are automatically marked as "draft" when commit messages start with "draft:" or "fixup!". This setting is enabled by default.
Changelog: added
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Open a MR in a project
- Go to project settings and disable the 'Mark merge requests as draft when pushed commits start with "draft:" or "fixup!"' setting
- Push commit to the MR branch that start with "draft:" or "fixup!", the MR should not be marked as draft
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Implements #337106 (closed)
Edited by 🤖 GitLab Bot 🤖

