Skip to content

ci: classify PR labels with Jev semantic scope - #1305

Merged
1jehuang merged 3 commits into
masterfrom
ci/jev-semantic-pr-labels
Sep 19, 2026
Merged

1jehuang merged 3 commits into
masterfrom
ci/jev-semantic-pr-labels

Conversation

@1jehuang

@1jehuang 1jehuang commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #1304

Summary

  • Use the standalone Jev PR Labeler, pinned to 07e219fcdcfd5b94463f492760e33e5f0baa99c2.
  • Classify type, area, platform, and semantic scope using Jev through OpenRouter. No line-count size thresholds.
  • Preserve human-applied exclusive labels and abstain below confidence 0.75. Workflow-state labels remain manual.
  • Safe pull_request_target: no PR checkout, executable PR input, artifacts, or dependencies. Only fixed trusted action code runs.

Validation

  • Standalone project: 62 offline tests covering typed API validation, scope policy, ownership/case handling, stale snapshots, pagination, truncated/binary evidence, API failures, and label provisioning races.
  • Full live CLI read/classify/apply/readback passed on this PR: type: maintenance, area: ci, size: S.
  • Semantic live fixtures: 30-file mechanical rename classified XS; small incompatible contract change flagged breaking and abstained on uncertain scope.
  • Standalone GitHub CI covers Python 3.11 and 3.14.
  • This PR changes only one workflow, based directly on current master. Existing local work is untouched.

Deployment

The repository's OPENROUTER_API_KEY secret is configured using the existing spend-capped OpenRouter key. Automatic labeling becomes active only after this PR is merged. Enabling the workflow sends PR title, description and textual patches to OpenRouter/TypeSafe and incurs small per-request usage. Do not use these labels as authorization for merges/deployment. Oversized/incomplete evidence requires manual labeling. This PR is intentionally left unmerged for review.

@1jehuang 1jehuang added area: ci CI workflows, automation, and build checks. size: S Focused change within one component; limited behavior change and few interactions. type: maintenance Dependency updates, build upkeep, and routine maintenance. labels Sep 19, 2026
@1jehuang
1jehuang merged commit 899b990 into master Sep 19, 2026
2 checks passed
@greptile-apps

greptile-apps Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

Safe to merge: the workflow forwards the intended pull request for both supported triggers and does not execute pull-request code.

What we checked:

  • Ran the label-pr-event-contract.py before and after to validate how pull-request events are labeled in the repository. T-Rex
  • The tests showed that the baseline did not forward a manual dispatch before the change, and the after state forwarded pull_request_target.pr and forwarded-pr values along with the input to the labeler, with no checkout step. T-Rex
  • Both checks completed successfully with exit code 0 and no checkout performed. T-Rex

Summary

  • Adds semantic pull-request labeling for selected pull-request events and manual workflow runs.
  • The selected pull request number is forwarded correctly for both trigger types.
  • The workflow uses a pinned labeler action and does not check out or run pull-request code.

No issues found.

Reviews (1) · Last reviewed commit: "ci: allow manually labeling an existing ..."

KooshaPari pushed a commit to KooshaPari/KCode that referenced this pull request Oct 9, 2026
* ci: classify PR labels with Jev semantic scope

* ci: pin validated Jev semantic labeler revision

* ci: allow manually labeling an existing PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, automation, and build checks. size: S Focused change within one component; limited behavior change and few interactions. type: maintenance Dependency updates, build upkeep, and routine maintenance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically classify PR labels with Jev semantic scope

1 participant