hiattco/PR Diff Risk Score
Score pull request diff risk and comment reviewer guidance.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token used to read PR files and write comments. | yes | ${{ github.token }} |
| fail-threshold | Fail the action when the risk score is greater than or equal to this value. Use 0 to disable. | no | 0 |
| comment-mode | Comment behavior. One of update, new, or off. | no | update |
| config-path | Path to an optional YAML configuration file. | no | .github/pr-risk-score.yml |
| llm-model | Optional LLM model override. If set, this value replaces config.llm.model. If blank, action resolves `LLM_MODEL` from environment. | no | — |
| mode | Risk judge mode. One of heuristic, llm, or hybrid. | no | — |
Outputs
| name | description |
|---|---|
| risk-score | The computed risk score from 1 to 10. |
| risk-level | The computed risk level. |
| json | JSON object with full risk computation result. |
| slop-score | The computed review-quality / slop score from 1 to 10. |
| overall-score | The max combined review burden score from 1 to 10. |
| risk-labels | Comma-separated recommended labels for review workflows. |