Files
langchain/.github/scripts/pr-labeler-config.json
Mason Daugherty 58f3d1a633 ci: consolidate PR labeling into unified workflows (#36042)
Consolidate four separate PR labeling workflows (`pr_labeler_file.yml`,
`pr_labeler_title.yml`, `pr_size_labeler.yml`, and the PR-handling half
of `tag-external-contributions.yml`) into a single `pr_labeler.yml`
workflow. The old workflows raced against each other — concurrent label
mutations could drop or duplicate labels depending on execution order. A
unified workflow with concurrency grouping eliminates that class of bug.
2026-03-17 20:29:33 -04:00

85 lines
3.1 KiB
JSON

{
"trustedThreshold": 5,
"labelColor": "b76e79",
"sizeThresholds": [
{ "label": "size: XS", "max": 50 },
{ "label": "size: S", "max": 200 },
{ "label": "size: M", "max": 500 },
{ "label": "size: L", "max": 1000 },
{ "label": "size: XL" }
],
"excludedFiles": ["uv.lock"],
"excludedPaths": ["docs/"],
"typeToLabel": {
"feat": "feature",
"fix": "fix",
"docs": "documentation",
"style": "linting",
"refactor": "refactor",
"perf": "performance",
"test": "tests",
"build": "infra",
"ci": "infra",
"chore": "infra",
"revert": "revert",
"release": "release",
"hotfix": "hotfix",
"breaking": "breaking"
},
"scopeToLabel": {
"core": "core",
"langchain": "langchain",
"langchain-classic": "langchain-classic",
"model-profiles": "model-profiles",
"standard-tests": "standard-tests",
"text-splitters": "text-splitters",
"anthropic": "anthropic",
"chroma": "chroma",
"deepseek": "deepseek",
"exa": "exa",
"fireworks": "fireworks",
"groq": "groq",
"huggingface": "huggingface",
"mistralai": "mistralai",
"nomic": "nomic",
"ollama": "ollama",
"openai": "openai",
"openrouter": "openrouter",
"perplexity": "perplexity",
"qdrant": "qdrant",
"xai": "xai",
"deps": "dependencies",
"docs": "documentation",
"infra": "infra"
},
"fileRules": [
{ "label": "core", "prefix": "libs/core/" },
{ "label": "langchain-classic", "prefix": "libs/langchain/" },
{ "label": "langchain", "prefix": "libs/langchain_v1/" },
{ "label": "standard-tests", "prefix": "libs/standard-tests/" },
{ "label": "model-profiles", "prefix": "libs/model-profiles/" },
{ "label": "text-splitters", "prefix": "libs/text-splitters/" },
{ "label": "integration", "prefix": "libs/partners/" },
{ "label": "anthropic", "prefix": "libs/partners/anthropic/" },
{ "label": "chroma", "prefix": "libs/partners/chroma/" },
{ "label": "deepseek", "prefix": "libs/partners/deepseek/" },
{ "label": "exa", "prefix": "libs/partners/exa/" },
{ "label": "fireworks", "prefix": "libs/partners/fireworks/" },
{ "label": "groq", "prefix": "libs/partners/groq/" },
{ "label": "huggingface", "prefix": "libs/partners/huggingface/" },
{ "label": "mistralai", "prefix": "libs/partners/mistralai/" },
{ "label": "nomic", "prefix": "libs/partners/nomic/" },
{ "label": "ollama", "prefix": "libs/partners/ollama/" },
{ "label": "openai", "prefix": "libs/partners/openai/" },
{ "label": "openrouter", "prefix": "libs/partners/openrouter/" },
{ "label": "perplexity", "prefix": "libs/partners/perplexity/" },
{ "label": "qdrant", "prefix": "libs/partners/qdrant/" },
{ "label": "xai", "prefix": "libs/partners/xai/" },
{ "label": "github_actions", "prefix": ".github/workflows/" },
{ "label": "github_actions", "prefix": ".github/actions/" },
{ "label": "dependencies", "suffix": "pyproject.toml" },
{ "label": "dependencies", "exact": "uv.lock" },
{ "label": "dependencies", "pattern": "(?:^|/)requirements[^/]*\\.txt$" }
]
}