innate-inc/Git File Size Limit
Fails a pull request when a changed file exceeds a size limit. Exemptions use real gitignore syntax.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| max_size | Maximum allowed size for a changed file. Accepts a byte count or a suffixed value (e.g. '100KB', '2MB', '1GB'). | no | 100KB |
| ignore_file | Path to a gitignore-syntax file listing exemptions (patterns, anchoring with a leading '/', directories with a trailing '/', negation with '!'). Files it matches are never flagged, however large. | no | .sizelimitignore |
| base_sha | Base commit SHA to diff against. Defaults to the pull request's base SHA. | no | ${{ github.event.pull_request.base.sha }} |
| head_sha | Head commit SHA to diff against. Defaults to the pull request's head SHA. | no | ${{ github.event.pull_request.head.sha }} |
| fail_on_violation | Whether to fail the action when a file exceeds the limit. Set to 'false' to only report. | no | true |
Outputs
| name | description |
|---|---|
| status | 'pass' or 'fail'. |
| violations_count | Number of files that exceeded the limit. |
| violations | Markdown-formatted bullet list of files that exceeded the limit; empty when none did. |