jj/Check pull request body, diff and files
Checks that the body or the added code contains or avoids a word, number of files or lines changed
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | Github token, added magically. | — | — |
| allowEmpty | Boolean - true will only throw a warning if the body is empty, false will fail the run | — | true |
| bodyContains | String or |-separated array of strings, one of which must be contained in the PR body, can be left blank or omitted | — | — |
| bodyDoesNotContain | String or |-separated array of strings, none of which should be in the PR body, can be left blank | — | — |
| diffContains | String that must be included in the added code | — | — |
| diffDoesNotContain | Word that should not be in the added code | — | — |
| linesChanged | Exact number of lines changed per PR | — | — |
| filesChanged | Exact number of files changed in the PR | — | — |
| waivedUsers | Users that will not need to follow these guidelines, separated by |. Defaults to dependabot. | — | — |
Outputs
| name | description |
|---|---|
| diff | Lines added to the PR |
| numberOfFiles | Number of files changed in the PR |