check-pr-length
v0.2.0
Published
A little cli to check the length of a PR and exit 1 if it reaches a certain threshold.
Downloads
7
Readme
check-pr-length
A little cli to check the length of a PR and exit 1 if it reaches a certain threshold.
Install
With npm:
$ npm install check-pr-length -g
With yarn:
$ yarn global add check-pr-length
Usage
usage : check-pr-length [-v | --version] [-h | --help]
[--base[=<base-branch>]] [--max[=<max-line-changes>]]
[--exclude[="<blob>;<blob>;..."]]
-v, --version
Print the version number.
-h, --help
Show this help message.
--base[=<base-branch>]
The base branch to compare against. Defaults to `develop`.
--silent[=false]
Defaults to true, set to false to get more detailed output.
--max[=<max-line-changes>]
The maximum number of line changes allowed (insertions or deletions). Defaults to `500`.
--total[=<max-line-changes>]
The maximum number of line changes allowed (insertions and deletions). Defaults to twice the max.
--exclude[="<blob>;<blob>;..."]
A list of blobs to exclude from the check.