1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 20:24:24 +00:00
gitea/services/webhook
zeripath e9935d358c
Only send webhook events to active system webhooks and only deliver to active hooks (#19234) (#19248)
Backport #19234

There is a bug in the system webhooks whereby the active state is not checked when
webhooks are prepared and there is a bug that deactivating webhooks do not prevent
queued deliveries.

* Only add SystemWebhooks to the prepareWebhooks list if they are active
* At the time of delivery if the underlying webhook is not active mark it
as "delivered" but with a failed delivery so it does not get delivered.

Fix #19220

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-29 14:12:56 +02:00
..
deliver_test.go A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
deliver.go Only send webhook events to active system webhooks and only deliver to active hooks (#19234) (#19248) 2022-03-29 14:12:56 +02:00
dingtalk_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
dingtalk.go Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
discord_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
discord.go Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
feishu_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
feishu.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
general_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
general.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
main_test.go Add missing X-Total-Count and fix some related bugs (#17968) 2021-12-15 13:39:34 +08:00
matrix_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
matrix.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
msteams_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
msteams.go Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
payloader.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
slack_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
slack.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
telegram_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
telegram.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
webhook_test.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
webhook.go Only send webhook events to active system webhooks and only deliver to active hooks (#19234) (#19248) 2022-03-29 14:12:56 +02:00
wechatwork.go Add issue hyperlinks in the webhook of wechatwork (#18102) 2021-12-25 21:30:09 +08:00