Add Gitea-to-Claude-Code-Routines webhook proxy

Express service that authenticates Gitea deliveries, verifies the HMAC
signature, builds a readable text summary for push/pull_request events,
and forwards it to the Anthropic routines API with the headers Gitea
can't set itself. Includes in-memory delivery dedup, structured logging,
.env.example, and a Dockerfile for deployment behind nginx.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-23 20:57:22 +02:00
parent 1bf6caf90e
commit 6decb31448
5 changed files with 1106 additions and 0 deletions

16
package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"name": "gitea-claude-webhook-proxy",
"version": "1.0.0",
"description": "Proxy que recibe webhooks de Gitea y los reenvía a la API de Claude Code Routines",
"main": "server.js",
"type": "commonjs",
"engines": {
"node": ">=18"
},
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^4.19.2"
}
}