1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/services
Jimmy Praet 06f483d0c4
Append to existing trailers in generated squash commit message (#15980)
* Remove superfluous newline before Co-authored-by trailers

* Append to existing PR description trailer section

If the existing PR description message already contains a trailer section (e.g. Signed-off-by: ),
append to it instead of creating a new trailer section.

* Reuse compiled regexp

* Simplify regex and deal with trailing \n in PR description

* Add tests for CommitMessageTrailersPattern

- add support for Key:Value (no space after colon)
- add support for whitespace "folding"

* Update services/pull/pull_test.go

Co-authored-by: Norwin <noerw@users.noreply.github.com>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-06-25 13:01:43 -04:00
..
archiver Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
auth Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
comments Enhance Ghost comment mitigation Settings (#14392) 2021-01-21 21:56:19 -05:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
forms Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
gitdiff Use gitea logging module for git module (#16243) 2021-06-25 17:54:08 +01:00
issue Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
lfs Rewrite of the LFS server (#15523) 2021-06-06 02:59:27 +03:00
mailer Localize Email Templates (#16200) 2021-06-23 14:33:21 +02:00
mirror Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
pull Append to existing trailers in generated squash commit message (#15980) 2021-06-25 13:01:43 -04:00
release Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
repository Small refactoring of modules/private (#15947) 2021-06-23 15:38:19 -04:00
webhook Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
wiki Fix individual tests (addition to #15802) (#15818) 2021-05-12 00:13:42 -04:00