Skip to content

Additional Review for Large PRs

Require 2 reviewers for PRs that have more than 10 changed files in the src directory and the estimated time to review is 30 or more minutes.

Additional Review for Large PRs

Configuration Description

Conditions (all must be true):

  • There are 10 or more changed files
  • The estimated time to review is 30 minutes or more.
  • One or more of the changed files is inside the src directory.

Automation Actions:

  • Require a minumim of 2 reviews.
  • Post a comment that explains this is considered a large change that requires 2 reviews.

Additional Review for Large PRs

# -*- mode: yaml -*-

  version: 1.0

      - {{ branch | estimatedReviewTime >= 30 }}
      - {{ files | length >= 10 }}
      - {{ files | match(regex=r/src\//) | some }}
      - action: set-required-approvals@v1
          approvals: 2
      - action: add-comment@v1
          comment: |
            This PR is a large change and requires 2 reviews.

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.