gitea/routers/api/v1
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
2025-02-02 14:44:50 +08:00
..
activitypub Remove SHA1 for support for ssh rsa signing (#31857) 2024-09-07 18:05:18 -04:00
admin Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
misc Fix markup render regression and fix some tests (#32640) 2024-11-26 03:04:55 +08:00
notify Refactor names (#31405) 2024-06-19 06:32:45 +08:00
org Move GetFeeds to service layer (#32526) 2024-11-29 17:53:49 +00:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
repo Fix system admin cannot fork or get private fork with API (#33401) (#33417) 2025-01-27 18:43:16 +00:00
settings Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
shared Refactor names (#31405) 2024-06-19 06:32:45 +08:00
swagger Fix sync fork for consistency (#33147) (#33192) 2025-01-10 15:11:45 +08:00
user Move GetFeeds to service layer (#32526) 2024-11-29 17:53:49 +00:00
utils Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
api.go Fix sync fork for consistency (#33147) (#33192) 2025-01-10 15:11:45 +08:00