When push commit with link to an "Task", the task should reference the commit same way as "Issue" does

Problem to solve

Currently, when push a commit, with an issue URL (etc https://gitlab.com/user/project/-/issues/123) in message, the commit will be automaticly link to the issue.

image

But when the URl is for a task (etc https://gitlab.com/user/project/-/work_items/123), it won’t link the commit to the task.

Although Issues and Tasks are different, but it would be nice to make the behaviour consistent.

Steps to reproduce

Commit with message including full URl of a Task https://gitlab.com/user/project/-/work_items/123

Expect to found the commit been linked to the Task.

Versions

Please add an x whether options apply, and add the version information.

  • Self-managed
  • [x ] GitLab.com SaaS
  • Dedicated