1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/services/webhook
Kemal Zebari fb03062478
Only provide the commit summary for Discord webhook push events (#32432)
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.
2024-11-07 19:56:53 +00:00
..
deliver_test.go Fix possible data race on tests (#30093) 2024-03-26 14:08:30 +00:00
deliver.go Support allowed hosts for migrations to work with proxy (#32025) 2024-09-11 05:47:00 +00:00
dingtalk_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
dingtalk.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
discord_test.go Only provide the commit summary for Discord webhook push events (#32432) 2024-11-07 19:56:53 +00:00
discord.go Only provide the commit summary for Discord webhook push events (#32432) 2024-11-07 19:56:53 +00:00
feishu_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
feishu.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
general_test.go Only provide the commit summary for Discord webhook push events (#32432) 2024-11-07 19:56:53 +00:00
general.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
matrix_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
matrix.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
msteams_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
msteams.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
notifier.go Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
packagist_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
packagist.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
payloader.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
slack_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
slack.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
telegram_test.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
telegram.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
webhook_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
webhook.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
wechatwork.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00