Add basic PR labeling reviewpad automation (#3310)

Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
Theodore Aptekarev
2022-11-09 22:40:27 +01:00
committed by GitHub
parent 9951461df8
commit 54aaa962f9

20
reviewpad.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
api-version: reviewpad.com/v3.x
workflows:
- name: label-pull-request-with-size
if:
- rule: $size(["*.lock","*.csv","*.yaml","*.txt"]) <= 100
extra-actions:
- $addLabel("feat XS")
- rule: $size(["*.lock","*.csv","*.yaml","*.txt"]) > 100 && $size(["*.lock","*.csv","*.yaml","*.txt"]) <= 300
extra-actions:
- $addLabel("feat S")
- rule: $size(["*.lock","*.csv","*.yaml","*.txt"]) > 300 && $size(["*.lock","*.csv","*.yaml","*.txt"]) <= 900
extra-actions:
- $addLabel("feat M")
- rule: $size(["*.lock","*.csv","*.yaml","*.txt"]) > 900 && $size(["*.lock","*.csv","*.yaml","*.txt"]) <= 1800
extra-actions:
- $addLabel("feat L")
- rule: $size(["*.lock","*.csv","*.yaml","*.txt"]) > 1800
extra-actions:
- $addLabel("feat XL")