Repository navigation
fix(release): distinguish CSS colors from issue references - #132075
Conversation
Use one token-aware scanner for release history, contribution labels, and editorial checks. Keep legitimate issue references after CSS custom-property colors instead of discarding the rest of their line.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 4:13 PM ET / 20:13 UTC. ClawSweeper reviewWhat this changesThe PR makes release-note reference parsing ignore CSS custom-property hex colors while retaining real issue and pull-request references. Merge readinessKeep open. The focused repair remains necessary: fetched current main still uses the duplicate permissive scanners, while this branch centralizes parsing and covers the CSS-color false-reference case without a blocking defect found. Priority: P2 Review scores
Verification
How this fits togetherRelease tooling scans changelog and commit text to build contribution records and validate editorial credits before publication. This scanner feeds reference resolution, generated records, and credit checks. flowchart LR
A[Commit and changelog text] --> B[Release reference scanner]
B --> C{Custom-property hex color?}
C -->|yes| D[Mask color token]
C -->|no| E[Retain source text]
D --> F[Parse issue references]
E --> F
F --> G[Ledger and credit validation]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +90, Other -6. Total +84 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the single canonical scanner and its focused behavioral tests after the exact-head required checks complete. Do we have a high-confidence way to reproduce the issue? Yes—at source level: current main’s scanner accepts decimal prefixes inside CSS hex values, and the changed parser masks those custom-property values before reference collection. This read-only review did not execute the repository test command. Is this the best way to solve the issue? Yes. Routing extraction and editorial checks through one parser removes the duplicate policy that caused the false references while preserving legitimate references later on the same line. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a939d4bdd811. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…132075) Use one token-aware scanner for release history, contribution labels, and editorial checks. Keep legitimate issue references after CSS custom-property colors instead of discarding the rest of their line.
What Problem This Solves
Resolves a problem where release-note verification treated CSS hex colors in commit messages as issue references, causing false unresolved-reference and contributor-credit errors. The actual palette-change commit a868258 produced seven references instead of its single PR reference.
Why This Change Was Made
Use one canonical scanner for reference numbers, labels, and editorial checks. Exclude only immediate CSS custom-property hex values and explicit color transitions; retain genuine references later on the same line, qualified references, and references inside Markdown/code. This replaces duplicated scanners and editorial regexes. The release-only workaround discarded legitimate later references and is superseded by this repair.
No dependencies, configuration, versions, tags, release selectors, publication, or changelog generation changes. This is a bounded maintainer-requested release-tooling repair. AI-assisted.
User Impact
Maintainers can verify release history containing CSS color descriptions without losing actual issue references or attributing colors to contributors. Unmarked positive numeric hashes remain issue references; this deliberately does not attempt to parse arbitrary CSS.
Evidence
Before the repair, the actual commit body returned
[130239,262624,1,0,80808,262624,1]; now it returns[130239].--bg #262624 (fixes #123)now returns[123]; the earlier release-only workaround returned no references. A separate complete-module probe compares frozen main, the release workaround, and this source across the real commit body and same-line, qualified, numeric-length, and inline/fenced-code preservation scenarios; all five fixed-source scenarios pass.54 tests passed (41 verifier, 13 ledger), including four real CLI subprocess cases. The new scanner regressions failed on unchanged production; the new editorial regression separately reproduced false eligibility/credit errors before repair. Scoped formatting, lint, syntax, and test type checks passed. Fresh complete-diff Codex autoreview reported no accepted/actionable findings at its default P0 threshold; no source changes followed review.
Local full changed-gate proof is not claimed: the inherited dependency installation is stale and its pinned pnpm launcher is missing. Hosted CI must provide the dependency-correct gates before native landing. No dependencies were patched to accommodate the host.
Production tooling: +26/-32 (net -6). Tests: +90/-0. Removed one duplicate extraction loop, two editorial regex checks, and one duplicate line loop. CSS hex lengths follow the CSS Color specification.
Provenance: the decimal-prefix scanner originates in f684527 (Vincent Koc, June 17); later repository qualification and entity handling retained it. The duplicate label scanner was added in #103222. Existing malformed closing-keyword tokenization is a named follow-up:
closingReferencesIncan truncatefixes #123abcbefore canonical scanning. This repair covers color/reference ownership without changing closing-keyword syntax.Exact-head hosted CI completed successfully on
f0239cdddb64a911a7b61df7a7b787d19fa00100: CI33206642775, attempt 1. The draft-skipped run is excluded. Native maintainer review artifacts validated; hosted prepare/merge gates remain mandatory.