Here's an example of a
reviewpad.yml configuration that labels pull requests authored by a member of a group of developers.
Suppose that, as Spotify, you consider developers new joiner until they create/merge their 10th pull request. Each time a new joiner creates a pull request, you want to label it in order to be able to perform a dedicated code review process. Using Reviewpad groups you can easily do such labeling.
description: Pull requests created by new joiners
- name: new-joiners
description: Group of developers that have created less than 10 pull requests
where: $pullRequestCountBy($developer, "all") < 10
- name: authored-by-new-joiner
spec: $isElementOf($author(), $group("new-joiners"))
- name: critical
description: Modifications by new joiners require careful review
- rule: authored-by-new-joiner