jojo/routers
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
..
api [v14.0/forgejo] fix: allow test delivery for webhooks not enabled for push events (#11074) 2026-01-28 16:09:43 +01:00
common chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
install [v14.0/forgejo] fix: don't clobber authorized_keys file during installation (#10948) (#11009) 2026-01-23 21:29:47 +01:00
private chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
utils [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167) 2024-04-15 13:03:08 +00:00
web [v14.0/forgejo] fix: allow test delivery for webhooks not enabled for push events (#11074) 2026-01-28 16:09:43 +01:00
init.go [v14.0/forgejo] fix: don't clobber authorized_keys file during installation (#10948) (#11009) 2026-01-23 21:29:47 +01:00