995 B
995 B
Setup
1) Create the repository and bot user
- Create
Bram/gitea-pr-review-bot. - Create the dedicated Gitea user
comedykit-pr-bot. - Create a PAT for that user with scopes:
write:repositorywrite:issue
2) Configure secrets
Create .env from .env.example and set:
CURSOR_API_KEYGITEA_TOKENGITEA_BASE_URLGITEA_BOT_LOGINWEBHOOK_SECRETPORT
3) Install and run locally
npm install
npm run dev
Health check:
curl http://localhost:8787/healthz
4) Configure Gitea webhook
Add an organization webhook for Bram (or per repo for pilot) with:
- URL:
https://<bot-host>/webhooks/gitea - Secret: matches
WEBHOOK_SECRET - Events:
pull_requestpull_request_review_request
5) Pilot rollout
Start with:
comedykit-frontend-newcomedykit-backend-new
After validation, enable org webhook for remaining Bram/* repositories and use .gitea/pr-review-bot.yml for per-repo opt-out.