feat(webhooks): the target page shows its last webhook deliveries, refused ones too #544

Merged
sharang merged 1 commits from feat/webhook-deliveries into main 2026-10-09 13:51:48 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 66f96695ba feat(webhooks): the target page shows its last webhook deliveries, refused ones too
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m53s
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
2026-10-09 15:37:47 +02:00