Skip to content

feat(ci): label release-please PRs with package scope#2539

Merged
Mason Daugherty (mdrxy) merged 1 commit into
mainfrom
mdrxy/ci/label-updates
Apr 7, 2026
Merged

feat(ci): label release-please PRs with package scope#2539
Mason Daugherty (mdrxy) merged 1 commit into
mainfrom
mdrxy/ci/label-updates

Conversation

@mdrxy

Copy link
Copy Markdown
Member

Release PRs created by release-please were never getting package labels (e.g., repl, quickjs, deepagents) because release-please uses GITHUB_TOKEN, and GitHub doesn't fire pull_request_target events for PRs created by that token. This also affected all other packages whose release-please component names (like langchain-repl, deepagents-acp) had no scopeToLabel mapping.

Changes

  • Add labelPR() to pr-labeler.js — a reusable function that applies title-based, file-based, and size labels to a given PR number, composing the existing matchTitleLabels, matchFileLabels, and computeSize helpers
  • Call labelPR() from a new step in release-please.yml after checkout, with continue-on-error: true so labeling failures never block release detection or downstream publish jobs
  • Add missing scopeToLabel entries for all release-please component names: deepagents-acp, langchain-daytona, langchain-modal, langchain-quickjs, langchain-repl, langchain-runloop
  • Add missing fileRules for libs/partners/quickjs/ and libs/repl/ so file-based labeling works for those packages

@github-actions github-actions Bot added feature New feature/enhancement or request for one github_actions PR touching `.github` infra Repo meta changes internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC labels Apr 7, 2026
@mdrxy
Mason Daugherty (mdrxy) merged commit a59cf0d into main Apr 7, 2026
29 checks passed
@mdrxy
Mason Daugherty (mdrxy) deleted the mdrxy/ci/label-updates branch April 7, 2026 20:31
james8814 pushed a commit to james8814/deepagents that referenced this pull request May 1, 2026
)

Release PRs created by release-please were never getting package labels
(e.g., `repl`, `quickjs`, `deepagents`) because release-please uses
`GITHUB_TOKEN`, and GitHub doesn't fire `pull_request_target` events for
PRs created by that token. This also affected all other packages whose
release-please component names (like `langchain-repl`, `deepagents-acp`)
had no `scopeToLabel` mapping.

- Add `labelPR()` to `pr-labeler.js` — a reusable function that applies
title-based, file-based, and size labels to a given PR number, composing
the existing `matchTitleLabels`, `matchFileLabels`, and `computeSize`
helpers
- Call `labelPR()` from a new step in `release-please.yml` after
checkout, with `continue-on-error: true` so labeling failures never
block release detection or downstream publish jobs
- Add missing `scopeToLabel` entries for all release-please component
names: `deepagents-acp`, `langchain-daytona`, `langchain-modal`,
`langchain-quickjs`, `langchain-repl`, `langchain-runloop`
- Add missing `fileRules` for `libs/partners/quickjs/` and `libs/repl/`
so file-based labeling works for those packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature/enhancement or request for one github_actions PR touching `.github` infra Repo meta changes internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant