jojo/routers/api/v1
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
..
activitypub log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
admin Revert "feat: add support for ephemeral runners compatible with autoscaling tools (#9409)" (#10463) 2025-12-19 17:24:03 +01:00
misc feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
notify feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
org Revert "feat: add support for ephemeral runners compatible with autoscaling tools (#9409)" (#10463) 2025-12-19 17:24:03 +01:00
packages chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo [v14.0/forgejo] fix: allow test delivery for webhooks not enabled for push events (#11074) 2026-01-28 16:09:43 +01:00
settings chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
shared Revert "feat: add support for ephemeral runners compatible with autoscaling tools (#9409)" (#10463) 2025-12-19 17:24:03 +01:00
swagger Revert "feat: add support for ephemeral runners compatible with autoscaling tools (#9409)" (#10463) 2025-12-19 17:24:03 +01:00
user Revert "feat: add support for ephemeral runners compatible with autoscaling tools (#9409)" (#10463) 2025-12-19 17:24:03 +01:00
utils fix(api): set all hook event types (#9997) 2025-11-07 07:04:21 +01:00
api.go Revert "feat: add support for ephemeral runners compatible with autoscaling tools (#9409)" (#10463) 2025-12-19 17:24:03 +01:00