getsentry/PR Risk Action
Score a pull request as low, medium, or high risk.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repo | GitHub repository as owner/name. | yes | — |
| pr-number | Pull request number. | yes | — |
| profile | Profile directory under profiles/. Defaults to owner__repo. | no | "" |
| history | Optional raw historical PR JSONL or JSONL.GZ path. Defaults to the selected profile history. | no | "" |
| model | Optional saved model JSON path. Defaults to the selected profile model. | no | "" |
| result-path | JSON result output path. | no | risk-pr-result.json |
| skip-reviews | Skip fetching current PR reviews. | no | true |
| apply-label | Apply risk labels to the pull request. Requires issues: write in the caller workflow. | no | true |
| label-prefix | Prefix for risk labels. | no | risk: |
| python-version | Python version used to run the scorer. | no | 3.11 |
Outputs
| name | description |
|---|---|
| risk-label | Final deployable low/medium/high label. |
| final-risk-label | Final deployable low/medium/high label. |
| final-risk-policy | Final label policy name. |
| logistic-risk-label | Logistic model label before guardrails. |
| rule-risk-label | Deterministic rule label before guardrails. |
| logistic-probability | Logistic model probability for the trained outcome. |
| logistic-percentile-repo | Logistic repo-relative percentile. |
| rule-percentile-repo | Deterministic rule repo-relative percentile. |
| github-label | Label applied to the pull request. |