lukas-kuntze/Pull Request Size Labeler
Automatically applies size labels to pull requests based on the total number of lines changed.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| config_file | Path to the YAML configuration file containing size label definitions. | no | .github/config/size-labels.yml |
| files_to_ignore | Glob patterns to exclude from the calculation (one pattern per line). | no | "" |
| github_token | GitHub token used for authenticating API requests. | yes | — |
| github_api_url | Base URL of the GitHub API (used for GitHub Enterprise Server). | no | https://api.github.com |
| ignore_file_deletions | If true, fully deleted files are not counted. | no | false |
| ignore_line_deletions | If true, deleted lines are not counted. | no | false |
Outputs
| name | description |
|---|---|
| label | The size label that was applied to the pull request. |
| lines_added | Total number of lines added in the pull request. |
| lines_deleted | Total number of lines deleted in the pull request. |
| total_lines | Total number of lines changed in the pull request. |