actions-marketplace-validations/Pull Request size labeler
Label a PR based on the amount of changes
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | GitHub token needed to interact with the repository | no | ${{ github.token }} |
| xs_label | Label for xs PR | no | size/xs |
| xs_max_size | Max size for a PR to be considered xs | no | 10 |
| s_label | Label for s PR | no | size/s |
| s_max_size | Max size for a PR to be considered s | no | 100 |
| m_label | Label for m PR | no | size/m |
| m_max_size | Max size for a PR to be considered m | no | 500 |
| l_label | Label for l PR | no | size/l |
| l_max_size | Max size for a PR to be considered l | no | 1000 |
| 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 of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
| github_api_url | URL to the API of your Github Server, only necessary for Github Enterprise customers | no | ${{ github.api_url }} |
| files_to_ignore | Whitespace separated list of files to ignore when calculating the PR size (sum of changes) | no | "" |
| ignore_line_deletions | Whether to ignore lines which are deleted when calculating the PR size. If set to "true", deleted lines will be ignored. | no | false |
| ignore_file_deletions | Whether to ignore files which are deleted when calculating the PR size. If set to "true", deleted files will be ignored. | no | false |
Outputs
no outputs