Add setting for auto-marking MRs as draft based on commit messages

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
Screenshot_2025-04-15_at_11.14.35 Screenshot_2025-04-15_at_11.28.17

How to set up and validate locally

  1. Open a MR in a project
  2. Go to project settings and disable the 'Mark merge requests as draft when pushed commits start with "draft:" or "fixup!"' setting
  3. 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 🤖

Merge request reports

Loading