Merge commit message with list of commits

How can I setup merge requests such that the merge commit message automatically has the list of commits it is merging from the source branch?

Eg:

Merge message heading

More information about merge

List:
* Commit message last
...
* Commit message first branching point

This is more important to me if we’re squashing the commits because otherwise the commit messages are visible in the history tree. The commit hash isn’t required but would be beneficial for non-squash merges (which might anyways be visible in the history tree)

I believe that’s currently not possible, but this issue covers your question:

One of the answers of this question on Stack Overflow suggests using the API as a workaround.

I hope this helps!