anistark/PR Reviewer Labeler
Automatically labels pull requests with the ideal number of reviewers based on change size
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 2, 2026
- License
- MIT
Pinned Snippet
uses: anistark/pr-reviewer-labeler@707feb477a5da981d08d5ab3346938f5eea7c03d # v0.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repo-token | GitHub token for API access | no | ${{ github.token }} |
| thresholds | YAML 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-label | Whether to add a reviewer-count label to the PR | no | true |
| add-comment | Whether to post a comment with the reviewer recommendation | no | true |
| label-prefix | Prefix for the reviewer label | no | reviewers |
| file-weights | YAML 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 | "" |
Outputs
| name | description |
|---|---|
| reviewer-count | The recommended number of reviewers |
| total-lines | Total lines changed (additions + deletions) |
| weighted-lines | Weighted lines changed (after applying file weights) |
| label | The label that was applied (if add-label is true) |