Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

fix(api): restore the /webhooks/:forge registry

2 months ago

f12fe28
Authored
grim8/22/2026, 9:58:52 AM
d0863c5 ("feat(ui): cleanup") rewrote webhooks.ts back to a single static
/webhooks/github route, dropping the registry 54473bf had added one commit
earlier. POST /webhooks/opengit returned 404, so every open-git delivery was
discarded at the edge and no open-git event could ever be ingested.

Restored verbatim, keeping that commit's OPENGIT_* -> OPEN_GIT_* env rename:
the secret now reads OPEN_GIT_BOT_WEBHOOK_SECRET, matching .env.example.

The registry is the safer shape and is why this is a restore, not a rewrite:
:forge is parsed with forgeSchema so an unknown value 404s before the body is
read, and Record<Forge, ForgeWebhook> fails to compile until a new forge has a
verifier. An unset secret 503s, never 'accept everything'.

Parent1884423

2 files changed
  • apps/api/src/routes/webhooks.ts+112−38
  • packages/forge-opengit/src/webhook/normalize.test.ts+6−1