GitHub App that automatically responds to issues and reviews PRs on PolicyEngine repositories using Claude.
- Create a GitHub App with the required permissions (issues: read/write)
- Copy
.env.exampleto.envand fill in your credentials - Run locally:
uv run uvicorn policyengine_github_bot.main:app --reload
Deploy to Cloud Run:
gcloud run deploy policyengine-github-bot \
--source . \
--set-env-vars "GITHUB_APP_ID=...,ANTHROPIC_API_KEY=..." \
--set-secrets "GITHUB_PRIVATE_KEY=github-private-key:latest,GITHUB_WEBHOOK_SECRET=github-webhook-secret:latest"