jey3dayo/PR Insights Labeler

Comprehensive PR insights with intelligent size, category, and risk labeling for GitHub Actions

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
file_size_limitMaximum file size (e.g., 100KB, 1.5MB, 500000)no100KB
file_size_limit_enabledEnable per-file size checks (set to false to skip size limit violations)notrue
file_lines_limitMaximum lines per file (current file total lines, not diff additions)no500
file_lines_limit_enabledEnable per-file line count checks (set to false to skip line limit violations)notrue
pr_additions_limitMaximum added lines for entire PR (diff-based)no5000
pr_additions_limit_enabledEnable PR additions checks (set to false to skip total-additions violations)notrue
pr_files_limitMaximum number of files in PR (excluding removed files)no50
pr_files_limit_enabledEnable per-PR file count checks (set to false to skip file-count violations)notrue
size_enabledEnable size labels (size/small, size/medium, size/large, size/xlarge, size/xxlarge)notrue
size_thresholdsJSON string for size label thresholds (additions-based)no{"small": 200, "medium": 500, "large": 1000, "xlarge": 3000}
complexity_enabledEnable complexity labels (complexity/medium, complexity/high)nofalse
complexity_thresholdsJSON string for complexity label thresholdsno{"medium": 15, "high": 30}
category_enabledEnable category labels (category/tests, category/docs, etc.)notrue
risk_enabledEnable risk labels (risk/high, risk/medium)notrue
large_files_labelLabel for files exceeding size or line limitsnoauto/large-files
too_many_files_labelLabel for PRs with too many filesnoauto/too-many-files
too_many_lines_labelLabel for files exceeding line count limitsnoauto/too-many-lines
excessive_changes_labelLabel for PRs with excessive changes (total additions)noauto/excessive-changes
skip_draft_prSkip check for draft PRsnotrue
comment_on_prComment on PR (auto/always/never)noauto
fail_on_large_filesFail workflow if large files are detected (labeled with large_files_label or too_many_lines_label)no""
fail_on_too_many_filesFail workflow if too many files are detected (labeled with too_many_files_label)no""
fail_on_pr_sizeFail workflow if PR size exceeds threshold (values: '', 'small', 'medium', 'large', 'xlarge', 'xxlarge'). Empty string to disable.no""
enable_summaryWrite PR metrics to GitHub Actions Summarynotrue
additional_exclude_patternsAdditional file patterns to exclude (comma or newline separated)no""
enable_directory_labelingEnable Directory-Based Labeling featurenotrue
directory_labeler_config_pathPath to directory labeler configuration fileno.github/directory-labeler.yml
max_labelsMaximum number of labels to apply (0 for unlimited)no10
use_default_excludesUse default exclude patterns (node_modules, dist, etc.)notrue
languageLanguage for output messages (en, ja, en-US, ja-JP). Fallback order: action input → pr-labeler.yml → LANGUAGE/LANG env → default 'en'no
github_tokenGitHub token for API access (required). Provide explicitly or ensure GITHUB_TOKEN/GH_TOKEN environment variable is setyes
namedescription
large_filesJSON array of files exceeding size or line limits with violation details
pr_additionsTotal lines added in PR (diff-based)
pr_filesTotal number of files in PR (excluding removed files)
exceeds_file_sizeWhether any file exceeds size limit ("true" | "false")
exceeds_file_linesWhether any file exceeds line limit ("true" | "false")
exceeds_additionsWhether PR exceeds total additions limit ("true" | "false")
exceeds_file_countWhether PR exceeds file count limit ("true" | "false")
has_violationsWhether any violation exists ("true" | "false")