Schrödinger's Draft
Summary
If you put a prefix "Draft" instead of "Draft:" on your MR title, the MR has a state of being a draft while being not a draft
Steps to reproduce
Create a MR and prefix the title manually with "Draft"
Example Project
What is the current bug behavior?
In edit view for that MR, right below the title there is a link that says "Remove the Draft prefix from the title to allow...". That indicates, that the MR is a Draft. This link works as expected. It removes the "draft" prefix and changes to "start title with Draft: ..."
In the overview of that MR is a Button in the top right corner which says "mark as draft". That indicates the opposite. This button does exactly what it wants to do. it adds the "Draft:" Prefix right in front of the "Draft" prefix.
What is the expected correct behavior?
Both functions should determine the prefix the same, whether it is a draft or not.
Relevant logs and/or screenshots
Overview with Button
Edit View with link
Output of checks
Bug found on:
- gitlab.com
- gitlab version: Enterprise Edition 13.12.2-ee