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.
description: Likely missing specs
# color is the hexadecimal color code for the label, without the leading #.
- name: codeChangesImplySpecChanges
description: Changes to src and not to spec
spec: $hasFilePattern("src/**") && !$hasFilePattern("docs/**")
- name: check-for-specs
description: Check for specs
- rule: codeChangesImplySpecChanges
You can see this policy in the following pull request reviewpad/action-demo/#2.