Label quick action at start of comment is ignored

Summary

Adding a label quick action at the start of a comment can sometimes result in the quick action text persisting and the label action not being executed

Steps to reproduce

  • Create a new project
  • Create following new labels
    • support request
    • awaiting feedback
  • Create a test issue
  • Add the following comment to the test issue
  • Notice that the final label (awaiting feedback) is added to the issue
  • Notice that the first label (support request) is not added to the issue

Example Project

What is the current bug behavior?

  • The first quick action is not executed. The quick action text appears in the posted comment

What is the expected correct behavior?

  • All quick actions within the comment would be executed

Output of checks

reproduced on GitLab.com

Edited by Mark Fletcher