| Crates.io | sampo-github-bot |
| lib.rs | sampo-github-bot |
| version | 0.2.2 |
| created_at | 2025-09-02 22:19:16.366737+00 |
| updated_at | 2025-09-14 18:48:33.759547+00 |
| description | GitHub App to inspect PRs and ask for changesets if needed |
| homepage | https://github.com/bruits/sampo |
| repository | https://github.com/bruits/sampo |
| max_upload_size | |
| id | 1821729 |
| size | 99,104 |
GitHub App server to inspect pull requests and automatically request Sampo changesets when needed.
Not sure what Sampo is? Don't know where to start? Check out Sampo's Getting Started guide.
Install the GitHub App on your repository. It will automatically request changesets on new pull requests.
TODO: Add a detailed usage guide, with screenshots
Set the following environment variables:
WEBHOOK_SECRET: webhook secret configured in the GitHub AppGITHUB_APP_ID: GitHub App ID (numeric)GITHUB_PRIVATE_KEY: GitHub App private key (PEM format)PORT (optional): port to listen on. Defaults to 3000ADDR (optional): full socket address, e.g. 0.0.0.0:8080. Overrides PORTThe app is deployed on Fly.io as a GitHub App and automatically handles webhook authentication and GitHub API access using JWT tokens and installation tokens.
GITHUB_APP_ID=... GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----..." WEBHOOK_SECRET=... cargo run -p sampo-github-bot
Then configure a webhook to http://localhost:3000/webhook via a tunnel (e.g., ngrok) for pull_request events.