Team-Based Label
new-joiner
label to Pull Requests opened by new team members. This approach streamlines the code review process, ensuring a thorough review and adherence to coding standards.Add Developer to a Group Based on a Condition & Add Label to the PR Based on the Group the Developer Is In
# Set the label
labels:
new-joiner:
description: Pull requests created by new joiners
color: 294b69
# Add Developers to a group if they have less than 10 PRs
groups:
- name: new-joiners
description: Group of developers that have created less than ten pull requests
kind: developers
type: filter
param: developer
where: $pullRequestCountBy($developer) < 10
# Set the condition to add the label
workflows:
- name: critical
description: Modifications by new joiners require careful review
run:
if: $isElementOf($author(), $group("new-joiners"))
then: $addLabel("new-joiner")