Skip to main content
Version: 3.16.0

Attention set

The Attention Set defines what kind of attention a pull request needs at a certain time.

For instance, a brand new pull request with an assigned reviewer requires the reviewer's attention but not the author's attention.

Here's an example of a reviewpad.yml configuration that labels a pull request according to the required attention set.

api-version: reviewpad.com/v3.x

workflows:
- name: attention-set
if:
- rule: $isWaitingForReview()
extra-actions:
- $addLabel("waiting-review")
- rule: $isWaitingForReview() == false
extra-actions:
- $removeLabel("waiting-review")
- rule: $hasUnaddressedThreads()
extra-actions:
- $addLabel("requires-author-attention")
- rule: $hasUnaddressedThreads() == false
extra-actions:
- $removeLabel("requires-author-attention")