anistark/PR Reviewer Labeler

Automatically labels pull requests with the ideal number of reviewers based on change size

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 2, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: anistark/pr-reviewer-labeler@707feb477a5da981d08d5ab3346938f5eea7c03d # v0.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repo-tokenGitHub token for API accessno${{ github.token }}
thresholdsYAML string defining lines-changed → reviewer-count mapping. Example: thresholds: | - lines: 50 reviewers: 1 - lines: 200 reviewers: 2 - lines: 500 reviewers: 3 no- lines: 50 reviewers: 1 - lines: 200 reviewers: 2 - lines: 500 reviewers: 3 - lines: 1000 reviewers: 4
add-labelWhether to add a reviewer-count label to the PRnotrue
add-commentWhether to post a comment with the reviewer recommendationnotrue
label-prefixPrefix for the reviewer labelnoreviewers
file-weightsYAML string defining glob → weight multipliers for different file types. Files matching a glob have their line count multiplied by the weight. Example: file-weights: | - glob: "**/*.test.*" weight: 0.5 - glob: "**/*.md" weight: 0.25 - glob: "src/core/**" weight: 1.5 no""
namedescription
reviewer-countThe recommended number of reviewers
total-linesTotal lines changed (additions + deletions)
weighted-linesWeighted lines changed (after applying file weights)
labelThe label that was applied (if add-label is true)