Skip to main content
Version: 3.16.0

Label with size

The size of a pull request is a good indicator of how much work is involved in reviewing it.

To help reviewers gauge the size of a pull request, you can add a label to it.

This is especially useful when the list of pull requests is big and you want to quickly see which one better fits your schedule.

api-version: reviewpad.com/v3.x

labels:
small:
color: 294b69
medium:
color: a8c3f7
large:
color: 8a2138

workflows:
- name: label-pull-request-with-size
if:
- rule: $size() <= 30
extra-actions:
- $addLabel("small")
- rule: $size() > 30 && $size() <= 100
extra-actions:
- $addLabel("medium")
- rule: $size() > 100
extra-actions:
- $addLabel("large")