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/models/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
..
hooktask.go Store webhook event in database (#29145) 12 months ago
main_test.go make writing main test easier (#27270) 1 year ago
webhook.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
webhook_system.go remove util.OptionalBool and related functions (#29513) 12 months ago
webhook_test.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago