AI-powered GitHub issue triage using Grok. Automatically labels issues, detects duplicates, and drafts responses.
- Fork this repo
- Connect to Railway
- Add environment variables (see
.env.example) - Deploy
- Go to your repo → Settings → Webhooks → Add webhook
- Payload URL:
https://your-app.railway.app/webhook - Content type:
application/json - Secret: Your
GITHUB_WEBHOOK_SECRET - Events: Select "Issues"
| Variable | Required | Description |
|---|---|---|
GITHUB_TOKEN |
Yes | GitHub PAT with repo access |
XAI_API_KEY |
Yes | x.ai API key for Grok |
GITHUB_WEBHOOK_SECRET |
No | Webhook signature secret |
REDIS_URL |
No | Redis for caching |
STRIPE_SECRET_KEY |
No | Pro tier gating |
TELEGRAM_TOKEN |
No | Telegram bot alerts |
CHANNEL_ID |
No | Telegram channel |
- Webhook receives new issue event
- Grok analyzes title and body
- Labels applied (bug/enhancement/question/docs)
- Draft response posted as comment
- Duplicates flagged if detected
GET /health- Health checkPOST /webhook- GitHub webhook handler
# Install deps
npm install
pip install -r requirements.txt
# Set environment
cp .env.example .env
# Edit .env with your keys
# Run
npm startMIT - Built by EchoForge Studios