Get up and running:
git clone git@github.com:toniperic/pr-bro.git
cd pr-bro
cargo build
cargo testRun with a GitHub token:
export PR_BRO_GH_TOKEN=ghp_your_token_here
cargo runCreate a personal access token at https://github.com/settings/tokens
Required scopes:
repo— for private repositoriespublic_repo— for public repositories only (if you don't need private repo access)
The app checks for the PR_BRO_GH_TOKEN environment variable first. If not set, you'll be prompted interactively at startup.
Run before committing:
cargo fmt
cargo clippyCI enforces both. Clippy runs with -D warnings — all warnings are treated as errors.
Run the test suite:
cargo testAll commits must follow Conventional Commits 1.0.0.
Format: <type>[optional scope]: <description>
| Type | Description | Version Bump |
|---|---|---|
feat |
New feature | MINOR |
fix |
Bug fix | PATCH |
docs |
Documentation only | none |
style |
Code style (formatting, whitespace) | none |
refactor |
Code refactoring (no functional change) | none |
perf |
Performance improvement | PATCH |
test |
Add or update tests | none |
build |
Build system changes | none |
ci |
CI configuration changes | none |
chore |
Other changes (dependencies, etc.) | none |
Add ! after the type or BREAKING CHANGE: in the footer to trigger a MAJOR version bump:
feat(config)!: change YAML schema formatfix(api)!: remove deprecated endpoint
Scope is optional but recommended:
feat(scoring): add label-based scoring factorfix(tui): prevent panic on empty PR listdocs: update installation instructions(no scope needed)
feat(scoring): add label-based scoring factor
fix(tui): prevent panic on empty PR list
docs: update installation instructions
feat(api)!: change config schema format
PR titles are validated in CI against this format. Non-compliant PRs are blocked until the title is fixed.
See VERSIONING.md for how commits map to releases.