gitea/services/webhook
Giteabot 22a93c1cdc
Some checks failed
release-nightly / disk-clean (push) Failing after 3m42s
release-nightly / nightly-docker-rootful (push) Failing after 4m5s
release-nightly / nightly-docker-rootless (push) Failing after 2m54s
release-nightly / nightly-binary (push) Has been cancelled
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
..
deliver_test.go
deliver.go Support allowed hosts for migrations to work with proxy (#32025) (#32026) 2024-09-11 14:54:19 +08:00
dingtalk_test.go
dingtalk.go
discord_test.go Only provide the commit summary for Discord webhook push events (#32432) (#32447) 2024-11-08 09:13:49 +08:00
discord.go Only provide the commit summary for Discord webhook push events (#32432) (#32447) 2024-11-08 09:13:49 +08:00
feishu_test.go
feishu.go
general_test.go Only provide the commit summary for Discord webhook push events (#32432) (#32447) 2024-11-08 09:13:49 +08:00
general.go
main_test.go
matrix_test.go
matrix.go
msteams_test.go
msteams.go
notifier.go
packagist_test.go
packagist.go
payloader.go
slack_test.go
slack.go
telegram_test.go Use old behavior for telegram webhook (#31588) 2024-07-09 11:23:33 +08:00
telegram.go Use old behavior for telegram webhook (#31588) 2024-07-09 11:23:33 +08:00
webhook_test.go
webhook.go
wechatwork.go