Skip to content

Assign Code Experts

When someone applies a suggest-reviewers label to a PR, use codeExperts to assign recommended reviewers and post a comment with the explainCodeExperts automation action.

Assign Code Experts

Configuration Description

Conditions (all must be true):

  • The PR has a suggest-reviewers label attached to it.

Automation Actions:

  • Use codeExperts to assign recommended reviewers.
  • Use explainCodeExperts to post a comment that lists the top code experts for the PR.

Assign Code Experts

# -*- mode: yaml -*-

  version: 1.0

    # Triggered when someone applies a suggest-reviewer label to a PR.
      - {{ pr.labels | match(term='suggest-reviewer') | some }}
    # More info about code experts
      - action: add-reviewers@v1
          reviewers: {{ repo | codeExperts(gt=10) }}
      - action: explain-code-experts@v1 
          gt: 10 

Additional Resources

gitStream is a workflow automation tool that enables you to use YAML configuration files to optimize your code review process. Add context to PRs, find code experts for reviews, and automate the merge process to maximize developer productivity.

Learn More about how gitStream Works.

Related Automations:

More Automations can be found on the Automation Library and Integrations pages.