Skip to main content
Version: 3.16.0

Remove label based on file paths

Here's an example of a reviewpad.yml configuration that removes a label from a pull request that contains the proper changes based on the file path.

api-version: reviewpad.com/v3.x

labels:
missing-specs:
description: Likely missing specs
color: 294b69

rules:
- name: changes_contain_specs
spec: $changed("src/@1.java", "spec/@1.java")
- name: changes_miss_specs
spec: $rule("changes_contain_specs") == false

workflows:
- name: check_for_specs
if:
- rule: changes_miss_specs
extra-actions:
- $addLabel("missing-specs")
- rule: changes_contain_specs
extra-actions:
- $removeLabel("missing-specs")