Skip to main content
Version: 3.16.0

Assign review to a team

An example of assigning a review to a team when touching a specific folder.

api-version: reviewpad.com/v3.x

rules:
- name: changes-to-configurations
spec: $hasFilePattern("src/config/**")

workflows:
- name: ask
description: Ask devops team
if:
- rule: changes-to-configurations
then:
- $assignTeamReviewer(["devops"])

An example of assigning a review to a specific number of elements on a team.

api-version: reviewpad.com/v3.x

rules:
- name: changes-to-configurations
spec: $hasFilePattern("src/config/**")

workflows:
- name: ask
description: Ask devops team
if:
- rule: changes-to-configurations
then:
- $assignReviewer($team("devops"), 3, "reviewpad")

An example of assigning a review to a team and a specific element.

api-version: reviewpad.com/v3.x

rules:
- name: changes-to-configurations
spec: $hasFilePattern("src/config/**")

workflows:
- name: ask
description: Ask John and devops team
if:
- rule: changes-to-configurations
then:
- $assignReviewer(["john"], "random")
- $assignTeamReviewer(["devops"])