Skip to main content
Version: 3.16.0

Assign senior reviewers to new joiners

An example of assigning senior reviewers to new joiners pull requests.

api-version: reviewpad.com/v3.x

labels:
critical:
description: Critical review
color: 294b69

groups:
- name: seniors
description: Group of senior developers
kind: developers
spec: '["torvalds"]'

- name: juniors
description: Group of developers that have created less than 10 PRs
kind: developers
type: filter
param: developer
where: $pullRequestCountBy($developer, "all") < 10

rules:
- name: authored-by-junior
spec: $isElementOf($author(), $group("juniors"))

workflows:
- name: critical
description: Pull requests by juniors should be reviewed by the senior developers
if:
- rule: authored-by-junior
then:
- $addLabel("critical")
- $assignReviewer($group("seniors"), "round-robin")