actions-marketplace-validations/PR size labeler (diff)
Label a PR based on the amount of changes
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | GitHub token | yes | — |
| xs_label | Label for xs PR | no | size/xs |
| xs_diff | Max size for a PR to be considered xs | no | 10 |
| s_label | Label for s PR | no | size/s |
| s_diff | Max size for a PR to be considered s | no | 50 |
| m_label | Label for m PR | no | size/m |
| m_diff | Max size for a PR to be considered m | no | 250 |
| l_label | Label for l PR | no | size/l |
| l_diff | Max size for a PR to be considered l | no | 500 |
| xl_label | Label for xl PR | no | size/xl |
| fail_if_xl | Report GitHub Workflow failure if the PR size is xl allowing to forbid PR merge | no | false |
| message_if_xl | Message to show if the PR size is xl | no | This PR exceeds the recommended size. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
| excluded_files | Regex to ignore files from the line diff count (e.g. /(\.test|\.spec)\.(js|jsx|ts|tsx)$/) | no | — |
Outputs
no outputs