jojo/routers/api
forgejo-backport-action 3ad19e7335 [v14.0/forgejo] fix: allow test delivery for webhooks not enabled for push events (#11074)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/11073

Webhooks not enabled for push events cannot be tested using the
"Test delivery" button, because the built-in test payload corresponds
to a push event and is therefore filtered out at delivery time if the
webhook isn't configured to trigger for such events.

This fixes it by delivering the payload for a push event regardless
of the webhook's configuration. This has the downside of delivering
a payload which isn't necessarily representative of what the webhook
will deliver for real, but it would be a significant effort to implement
test payloads for all possible event types. We leave this as a follow-up
improvement.

Fixes #7934.

Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11074
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2026-01-28 16:09:43 +01:00
..
actions [v14.0/forgejo] fix: don't return AdditionalTasks from FetchTask if there is no Task (#10909) 2026-01-18 02:35:02 +01:00
forgejo/v1 fix: /api/forgejo/v1/version Content-Type error (#9897) 2025-11-05 17:35:50 +01:00
packages fix(alt): handle package names with dots in ALT repository (#9763) 2025-11-02 16:18:56 +01:00
shared feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
v1 [v14.0/forgejo] fix: allow test delivery for webhooks not enabled for push events (#11074) 2026-01-28 16:09:43 +01:00