Assign senior reviewers to new joiners
Here's an example of assigning senior reviewers ti new joiners pull requests.
apiVersion: reviewpad.com/v0.0.4
labels:
priority:
description: priority reviews
groups:
gods:
description: Group of dev gods
kind: developers
spec: '["torvalds"]'
juniors:
description: Group of devs that have created less than 10 PRs
kind: developers
type: filter
param: dev
where: $totalCreatedPRs($dev) < 10
rules:
authoredByJunior:
kind: author
description: Patch is authored by a junior dev
spec: $isMemberOf($name(), $group("juniors"))
protectionGates:
- name: critical
description: PRs by juniors should be reviewed by the gods
patchRules:
- rule: authoredByJunior
actions:
- $addLabel("priority")
- $assignReviewer($group("gods"))
Updated 29 days ago
Did this page help you?