tutyamxx/PR Size & Risk Labeler
Automatically labels pull requests by diff size and change risk.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token with write permissions for pull-requests and issues. | yes | ${{ github.token }} |
| enable-risk-labels | Whether to apply risk/* labels. Set to 'false' to disable. | no | true |
| size-small-threshold | Max total changed lines (additions + deletions) to be labelled size/small. Above this → size/medium. | no | 99 |
| size-medium-threshold | Max total changed lines (additions + deletions) to be labelled size/medium. Above this → size/large. | no | 499 |
| risk-low-lines | Max total changed lines for risk/low. Both this and risk-low-files must hold. | no | 99 |
| risk-low-files | Max files changed for risk/low. Both this and risk-low-lines must hold. | no | 5 |
| risk-medium-lines | Max total changed lines for risk/medium. Both this and risk-medium-files must hold. Above → risk/high. | no | 499 |
| risk-medium-files | Max files changed for risk/medium. Both this and risk-medium-lines must hold. Above → risk/high. | no | 15 |
Outputs
| name | description |
|---|---|
| size-label | The size label applied to the PR — one of size/small, size/medium, size/large. |
| risk-label | The risk label applied to the PR — one of risk/low, risk/medium, risk/high. Empty string if risk labels are disabled. |