Ability to set label to indicate PR size (by files or total changes)
There's a special rule named default
which will act as fallback in case of no match found. This rule is optional and if none provided and none matched - no label will be apply.
The rule will re-evaluate the PR on each event and update the label if required.
All size labels must exist
label
(required) - the label to applychanged-files-threshold
(optional) - Maximum number of changed fileschanges-threshold
(optional) - Maximum number of changescomment
(optional) - a comment to post to PR
rules:
example:
sizing:
xs:
label: size/xs
changed-files-threshold: 5
changes-threshold: 10
s:
label: size/s
changed-files-threshold: 10
default:
comment: "Your PR is way too large for review!"