mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-29 08:37:08 +08:00
Add tests for webhook and fix some webhook bugs (#33396)
This PR created a mock webhook server in the tests and added integration tests for generic webhooks. It also fixes bugs in package webhooks and pull request comment webhooks.
This commit is contained in:
modules/structs
routers/api/v1/utils
services/webhook
dingtalk.godiscord.gofeishu.gogeneral_test.gomatrix.gomsteams.gonotifier.gopackagist.goslack.gotelegram.gowebhook.gowechatwork.go
tests
@ -120,3 +120,7 @@ func newPackagistRequest(_ context.Context, w *webhook_model.Webhook, t *webhook
|
||||
}
|
||||
return newJSONRequest(pc, w, t, true)
|
||||
}
|
||||
|
||||
func init() {
|
||||
RegisterWebhookRequester(webhook_module.PACKAGIST, newPackagistRequest)
|
||||
}
|
||||
|
Reference in New Issue
Block a user