Label potential missing changes
It is fairly common that changes in some files imply changes in other files.
As an example, modifying files in the src directory might need changes in the docs directory.
apiVersion: reviewpad.com/v0.0.4
labels:
missing-specs:
description: likely missing specs
rules:
codeChangesImplySpecChanges:
kind: patch
description: Changes to src and not to spec
spec: $hasFilePattern("src/**") && !$hasFilePattern("docs/**")
protectionGates:
- name: checkForSpecs
description: Check for specs
patchRules:
- rule: codeChangesImplySpecChanges
actions:
- $addLabel("missing-specs")
You can see this policy in the following pull request reviewpad/action-demo/#2.
Updated 29 days ago
Did this page help you?