Merge requests with `draft` anywhere in the title are being marked as draft MRs

Summary

When raising a MR that has draft in the title, suchj as Always post Week Notes as a draft, the MR is marked as a draft, even though the draft is not at the beginning of the title, as per the help text:

Start the title with Draft: or WIP: to prevent a merge request that is a work in progress from being merged before it's ready.

Steps to reproduce

  1. Raise a MR with the title Something draft
  2. Notice that the MR is a draft

Example Project

jamietanna/www-api!237 (merged)

What is the current bug behavior?

MR is marked as a draft

What is the expected correct behavior?

MR should not be marked as a draft

Relevant logs and/or screenshots

N/A

Output of checks

This bug happens on GitLab.com.

Results of GitLab environment info

GitLab.com Next

Results of GitLab application Check

GitLab.com Next

Possible fixes

Assignee Loading
Time tracking Loading