jnewtons/PR Size Guard
Guard PR size and nudge teams to include tests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token for API calls. Recommended to pass ${{ github.token }} from the workflow. | no | — |
| max_lines | Maximum total changed lines allowed in a PR | no | 400 |
| max_files | Maximum changed files allowed in a PR | no | 25 |
| test_paths | Comma separated list of folders considered tests (e.g. tests,__tests__) | no | test,tests,__tests__ |
| exclude | Comma separated glob patterns to ignore (e.g. **/package-lock.json,**/*.min.js) | no | "" |
| mode | warn or fail | no | warn |
| retries | Number of retries on transient API errors (HTTP 429/5xx) | no | 2 |
Outputs
| name | description |
|---|---|
| files_changed | Number of considered files |
| lines_changed | Total changed lines across considered files |
| tests_touched | Whether a test directory was touched |
| verdict | pass, warn, or fail |