You can only rewrite the final commit message in the web UI for squashable merge requests
Summary
When a merge request with a single commit is merged, the final commit message that ends up in the history is taken from that merge request's sole commit; there is no opportunity to rewrite the commit message in the web UI before merging as there is with multi-commit merge requests, where you can rewrite the commit message while squashing.
Steps to reproduce
- Submit a merge request with only one commit in it
- Do not push any additional commits to the merge request
- Someone else updates the merge request's description to be more accurate or add an important keyword that they would like to end up in the final commit message
- You or someone else merges the merge request
Example Project
Merge request: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/35
Final commit after being merged: https://invent.kde.org/plasma/plasma-workspace/-/commit/53162d2ab72a0df505a453f876e43be3bb2194cd
What is the current bug behavior?
The commit message came from the sole commit in the merge request, not the merge request's description. As a result, the special BUG: 422292
keyword that the author added to the merge request's description did not get added and our Git hookscript that automatically closes bugs did not get run, so https://bugs.kde.org/show_bug.cgi?id=422292) did not get run had to be closed manually.
What is the expected correct behavior?
When the merge request was merged, the final commit message was made from the text of the merge request description, not the sole commit in the merge request.