10

PR Reviewer Labeler

Github Action to automatically label PRs with the ideal number of reviewers based on change size and file complexity

A GitHub Action that automatically labels pull requests with the ideal number of reviewers based on the size and complexity of changes.

Features

  • Size-based reviewer recommendations — configurable thresholds mapping lines changed to reviewer count
  • File-type weighting — weight certain file types higher or lower (e.g., tests count less, core code counts more)
  • PR labels — automatically applies labels like reviewers: 2
  • PR comments — posts a summary table with the recommendation
  • Idempotent — updates existing labels and comments instead of creating duplicates

Quick Start

Install from the GitHub Marketplace, or add directly to your workflow:

- uses: anistark/pr-reviewer-labeler@v1

With zero configuration, it uses sensible defaults based on lines changed to determine the suggested number of reviewers.