ci: label pull requests by ownership area - #289
Merged
Conversation
tt-a1i
approved these changes
Aug 29, 2026
tt-a1i
left a comment
Collaborator
There was a problem hiding this comment.
Exact-head merge-gate review at e7398b7 against main 6286bd8. The pull_request_target workflow does not checkout or execute PR code, reads configuration from the trusted base commit, pins actions/labeler to a verified commit, grants only contents:read and pull-requests:write, and syncs only configured taxonomy labels. Two independent security reviews found no actionable findings; focused tests and bun run check passed locally, all required CI checks are green, and all configured labels exist.
agnitum2009
pushed a commit
to agnitum2009/openpi
that referenced
this pull request
Aug 29, 2026
(cherry picked from commit 25fd64d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Pull requests are not consistently classified by the OpenPI area they change. Maintainers must inspect each diff before they can filter, route, or summarize work by ownership boundary.
Value
Automatic, deterministic area labels make the PR queue easier to scan and filter without adding a third-party service or asking contributors to classify their own changes.
Approach
pull_request_targetso fork PRs can receive labels, while reading only base-branch configuration and never checking out or executing contributor code.contents: readandpull-requests: writeto the labeling job.Validation
node --test tests/github/automation-workflows.test.ts— 6 passed../node_modules/.bin/biome format .— passed../node_modules/.bin/biome lint . --error-on-warnings— passed.node_modules/typescript/bin/tsc --noEmit— passed.node scripts/run-tests.mjs— 1,006 passed, 5 failed, 1 skipped. Four existing setup-config process tests exhausted the sandbox's file-watch limit (EMFILE), and one subagent backend test could not create Pi session state under~/.pi(EPERM).bun run checkandbun run testwere not run because Bun is unavailable in this environment; the installed underlying check and test commands were run directly as listed above.Impact
area:*labels and Markdown changes receivedocumentation.