]> source.dussan.org Git - gitea.git/commit
Display conflict-free merge messages for pull requests (#15773)
authorSteven <61625851+justusbunsi@users.noreply.github.com>
Sat, 8 May 2021 19:19:42 +0000 (21:19 +0200)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 19:19:42 +0000 (20:19 +0100)
commit864e656d81b817cd49c6245e1b7f60eece99af30
tree013448d052f7cfd87944bf5c3af6e41510f4643e
parente22ee468cf0e2d751baa859a643453a59f3c7896
Display conflict-free merge messages for pull requests (#15773)

Repositories using external issue tracker tend to use numeric issues in
commits. To prevent conflicts during issue reference parsing or inside
commit hooks, this change respects these configuration and uses the !
character to refer to pull requests in merge commit messages.

For repositories using squash merges, this was already handled.

Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
models/pull.go
models/pull_test.go