gitea/services/webhook
Mopcho 013b2686fe
Fix discord webhook 400 status code when description limit is exceeded (#34084)
Fixes [#34027](https://github.com/go-gitea/gitea/issues/34027)

Discord does not allow for description bigger than 2048 bytes. If the
description is bigger than that it will throw 400 and the event won't
appear in discord. To fix that, in the createPayload method we now slice
the description to ensure it doesn’t exceed the limit.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-04 18:09:40 +00:00
..
deliver.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
deliver_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
dingtalk.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
dingtalk_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
discord.go Fix discord webhook 400 status code when description limit is exceeded (#34084) 2025-04-04 18:09:40 +00:00
discord_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
feishu.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
feishu_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
general.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
general_test.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
matrix.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
matrix_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
msteams.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
msteams_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
notifier.go Refactor functions to reduce repopath expose (#33892) 2025-03-16 03:14:56 +00:00
packagist.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
packagist_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
payloader.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
slack.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
slack_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
telegram.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
telegram_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
webhook.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +00:00
webhook_test.go Test webhook email (#33033) 2024-12-30 01:25:49 +08:00
wechatwork.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00