Patchbay routes git hosting webhooks and upstream feed signals to notifications and fork-maintenance jobs
Find a file
matamune b455647580
All checks were successful
check / check (push) Successful in 35s
Add optional Discord webhook notifications
2026-05-12 21:33:24 +00:00
.forgejo/workflows Install Docker CLI in CI container build 2026-05-12 21:10:00 +00:00
src Add optional Discord webhook notifications 2026-05-12 21:33:24 +00:00
test Add optional Discord webhook notifications 2026-05-12 21:33:24 +00:00
.gitignore Initial git webhooks service 2026-05-12 21:06:22 +00:00
bun.lock Initial git webhooks service 2026-05-12 21:06:22 +00:00
Dockerfile Initial git webhooks service 2026-05-12 21:06:22 +00:00
package.json Initial git webhooks service 2026-05-12 21:06:22 +00:00
README.md Add optional Discord webhook notifications 2026-05-12 21:33:24 +00:00
tsconfig.json Initial git webhooks service 2026-05-12 21:06:22 +00:00

git-webhooks

Containerized Bun service for GitHub and jojo.build webhooks.

Endpoints

GET  /healthz
POST /git-webhooks/jojo
POST /git-webhooks/github

Environment

HOST=0.0.0.0
PORT=3000
DATA_DIR=/app/data
JOJO_WEBHOOK_SECRET=...
GITHUB_WEBHOOK_SECRET=...
DISCORD_WEBHOOK_URL=
DISCORD_NOTIFY_EVENTS=push,pull_request,release

Discord notifications are optional. When DISCORD_WEBHOOK_URL is unset, the service skips Discord output. DISCORD_NOTIFY_EVENTS is a comma-separated allow list and defaults to push,pull_request,release.

Development

bun install
bun run check
bun run dev

Accepted webhook events are appended to DATA_DIR/events.jsonl; queued work items are appended to DATA_DIR/jobs.jsonl.