You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/webhook
Lunny Xiao 23971a77a0
Add tests for webhook and fix some webhook bugs (#33396) (#33442)
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 also corrected an error on the package webhook. The previous
implementation uses a `User` struct as an organization, now it has been
corrected but it will not be consistent with the previous
implementation, some fields which not belong to the organization have
been removed.

Backport #33396
Backport part of #33337
3 weeks ago
..
deliver.go Support allowed hosts for migrations to work with proxy (#32025) 6 months ago
deliver_test.go Fix possible data race on tests (#30093) 11 months ago
dingtalk.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
dingtalk_test.go Store webhook event in database (#29145) 12 months ago
discord.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
discord_test.go Only provide the commit summary for Discord webhook push events (#32432) 4 months ago
feishu.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
feishu_test.go Store webhook event in database (#29145) 12 months ago
general.go Refactor webhook (#31587) 8 months ago
general_test.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
main_test.go make writing main test easier (#27270) 1 year ago
matrix.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
matrix_test.go Store webhook event in database (#29145) 12 months ago
msteams.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
msteams_test.go Store webhook event in database (#29145) 12 months ago
notifier.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
packagist.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
packagist_test.go Enable tenv and testifylint rules (#32852) 2 months ago
payloader.go Refactor webhook (#31587) 8 months ago
slack.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
slack_test.go Store webhook event in database (#29145) 12 months ago
telegram.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
telegram_test.go Refactor webhook (#31587) 8 months ago
webhook.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
webhook_test.go Enable tenv and testifylint rules (#32852) 2 months ago
wechatwork.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago