0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-02-16 13:33:06 +01:00
gitea/services
Giteabot 22a93c1cdc
Only provide the commit summary for Discord webhook push events (#32432) (#32447)
Backport #32432 by @kemzeb

Resolves #32371.

#31970 should have just showed the commit summary, but
`strings.SplitN()` was misused such that we did not perform any
splitting at all and just used the message. This was not caught in the
unit test made in that PR since the test commit summary was > 50 (which
truncated away the commit description).

This snapshot resolves this and adds another unit test to ensure that we
only show the commit summary.

Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
2024-11-08 09:13:49 +08:00
..
actions Update scheduled tasks even if changes are pushed by "ActionsUser" (#32246) (#32252) 2024-10-14 16:55:16 +08:00
agit
asymkey
attachment
auth Don't init singing keys if oauth2 provider disabled (#32177) 2024-10-03 11:34:56 -04:00
automerge
context Fix bug when a token is given public only (#32204) (#32218) 2024-10-09 02:16:37 +00:00
contexttest
convert
cron
doctor
externalaccount [Fix] Account Linking UpdateMigrationsByType (#31428) (#31434) 2024-06-20 13:53:15 +00:00
feed
forms
gitdiff Refactor sha1 and time-limited code (#31023) (#31030) 2024-05-21 00:58:21 +08:00
indexer
issue
lfs Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) (#32397) 2024-11-01 03:53:59 +00:00
mailer Add missing comment reply handling (#32050) (#32065) 2024-09-18 09:23:28 +00:00
markup
migrations Support allowed hosts for migrations to work with proxy (#32025) (#32026) 2024-09-11 14:54:19 +08:00
mirror
notify
org
packages Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) (#32397) 2024-11-01 03:53:59 +00:00
pull Fix the logic of finding the latest pull review commit ID (#32139) (#32165) 2024-10-01 13:10:03 +09:00
release Handle invalid target when creating releases using API (#31841) (#32043) 2024-09-17 02:23:40 +00:00
repository Fix bug when deleting a migrated branch (#32075) (#32123) 2024-09-24 17:01:05 +08:00
secrets
task Fix "force private" logic (#31012) (#31021) 2024-05-20 10:27:52 +08:00
uinotification
user Add warn log when deleting inactive users (#32318) (#32321) 2024-10-23 10:48:42 +08:00
webhook Only provide the commit summary for Discord webhook push events (#32432) (#32447) 2024-11-08 09:13:49 +08:00
webtheme
wiki