mattdowdell/PR Sizer
Add a label to each pull request based on the number of lines changed.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| xs-threshold | The maximum number of lines changed for an extra small label to be assigned. | no | 10 |
| s-threshold | The maximum number of lines changed for a small label to be assigned. | no | 100 |
| m-threshold | The maximum number of lines changed for a medium label to be assigned. | no | 200 |
| l-threshold | The maximum number of lines changed for a large label to be assigned. | no | 400 |
| xl-threshold | The maximum number of lines changed for a extra large label to be assigned. | no | 800 |
| xs-label | The name of the label for very small number of lines changed. | no | size/XS |
| s-label | The name of the label for small number of lines changed. | no | size/S |
| m-label | The name of the label for medium number of lines changed. | no | size/M |
| l-label | The name of the label for large number of lines changed. | no | size/L |
| xl-label | The name of the label for very large number of lines changed. | no | size/XL |
| xxl-label | The name of the label for very, very large number of lines changed. | no | size/XXL |
| color | The colour to use when creating labels. | no | 4f348b |
| github-token | The token to use for managing labels. | no | ${{ github.token }} |
| ignore-deleted-files | Ignore files deletion when calculating the number of lines changed. | no | false |
| ignore-deleted-lines | Ignore lines deletion when calculating the number of lines changed. | no | false |
| ignore-whitespace | Whether to ignore whitespace changes at the end of a line. Set to 'true' to enable, or 'false' to disable. | no | true |
| dry-run | Skip creating labels and assigning a label to the pull request. | no | false |
Outputs
| name | description |
|---|---|
| label | The label assigned to the pull request. |
| size | The calculated size of the pull request's changes. |
| includes | The files included in the size calculation. |
| excludes | The files excluded from the size calculation. |
| ignores | The files ignored from the size calculation. |