Squashing MR doesn't use the latest (updated) MR's title

Summary

Squashing option of a Merge Request (MR) will always use the first title assigned to it, and not the latest (updated) one.

Steps to reproduce

Fast-forward merge must be enabled first.
Create a Merge Request with title "X" and squashing option enabled.
Change the title to "Y".
Merge.
The squashed commit will have "X" as message instead of "Y".

Example Project

MR: PierpaoloBagnasco/test_mr_squashing!1 (merged) (notice the title update)
Master branch after MR has been merged: https://gitlab.com/PierpaoloBagnasco/test_mr_squashing/commits/master (it contains Update README.md instead of Update README.md [UPDATED]).

What is the current bug behavior?

Squashing option does not use the latest MR's title.
I've also tried the following (PierpaoloBagnasco/test_mr_squashing!2 (merged)):

  • Change the title
  • Disable squashing option
  • Enable squashing option
  • Merge

But the behavior is the same.

What is the expected correct behavior?

Squashing option should always use latest MR's title.

Output of checks

This bug happens on GitLab.com and self-hosted GitLab instances.

/label ~bug

Edited by Pierpaolo