]> source.dussan.org Git - gitea.git/commit
Use the text of pull-request as the squash commit's message (#13071)
authorMura Li <2606021+typeless@users.noreply.github.com>
Mon, 21 Dec 2020 16:46:14 +0000 (00:46 +0800)
committerGitHub <noreply@github.com>
Mon, 21 Dec 2020 16:46:14 +0000 (17:46 +0100)
commit09304db9a5d88c035a96f74a4544572bc8c5dac0
tree19d4c329b6f6e5aa7ebce73af6b51d267e527c31
parent34df4e5df558e7ec648efe083696687be6f8c8a8
Use the text of pull-request as the squash commit's message (#13071)

Originally, it was filled by the commit messages of the involved
commits. In this change, we use the headline comment of the pull
request as the commit message when it is a squash merge.

Thanks to @zeripath for suggesting the idea.

Fixes #12365

Co-authored-by: Mura Li <typeless@users.noreply.github.com>
routers/repo/pull.go
services/pull/pull.go