gitea/services/webhook
Giteabot 3c7e7a19dd
fix(webhook/discord): fixed username cannot be empty error (#35412) (#35417)
Backport #35412 by @ulnanlu

username field is not required by discord and used to override the
default username. sending it as blank causes a 400 error. it should be
omitted instead when it's not set.

Ref:
https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params

Closes #35411

Co-authored-by: ulnanlu <220980518+ulnanlu@users.noreply.github.com>
2025-09-05 18:44:39 +07:00
..
deliver.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
deliver_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
dingtalk.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
dingtalk_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
discord.go fix(webhook/discord): fixed username cannot be empty error (#35412) (#35417) 2025-09-05 18:44:39 +07:00
discord_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07: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 +07:00
general.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
general_test.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +07:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +07: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 +07:00
msteams.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
msteams_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
notifier.go Reload issue when sending webhook to make num comments is right. (#35243) (#35248) 2025-08-11 10:12:47 +07: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 +07: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 +07: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 +07:00
webhook.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +07:00
webhook_test.go Test webhook email (#33033) 2024-12-30 01:25:49 +07:00
wechatwork.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 +07:00