mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-03-27 10:21:17 +00:00
A PR that only touches `uv.lock` currently gets the label of its' dir because the file rule matches on the file prefix. This is misleading — lockfile-only changes aren't meaningful package changes. The `excludedFiles` list already existed in config (for size calculations), but file rules didn't consult it. ## Changes - Add `skipExcludedFiles` option to file rules in `pr-labeler-config.json`, enabled for the four package rules (`deepagents`, `cli`, `acp`, `evals`) so lockfile-only PRs don't trigger package labels - `matchFileLabels` in `pr-labeler.js` now filters out files whose basename appears in the top-level `excludedFiles` list (currently just `uv.lock`) before testing rules that opt in via `skipExcluded` - Non-package rules (`github_actions`, `dependencies`) are unaffected — they don't set the flag