The managed Gitea source webhook answers 202 and decides about entitlement
in the background, so Gitea's delivery log cannot tell a refused delivery
from a handled one. Every verified delivery that asks for work is now
recorded (time, event, handled/refused/failed with the reason, elapsed ms)
in a capped per-tenant collection, read by a new
GET /api/v1/targets/{id}/webhook-deliveries and shown in a box on the
target page.
A managed-source delivery carries its repository (base_url + repo_id), so
one refused before its target exists still shows on the target once the
sync creates it. The per-target GitHub/GitLab/Gitea receivers record the
push or PR review they queue. Recording never fails a webhook; errors are
logged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p