fix(signals): match hyphenated test-only no-issue rationale - #1993
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-01 07:25:42 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 2 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
hasClearNoIssueRationaleinsrc/signals/engine.tsis the shared definition of a clear no-issue rationale for the slop signal (#562), the public PR-panel traceability check, and the hard linked-issue gate. After #1905 it recognizes docs-only rationales in both space and hyphenated forms (docs only,docs-only), but the same Conventional Commits spelling for test-only PRs was still missed.Consequence: a test-only PR with no linked issue — e.g.
test-only: lock regression for …— on a repo withlinkedIssueGateMode === "block"can hithardLinkedIssueBlock, fail the gate, and be auto-closed despite a valid rationale. It also misfires the slop signal and shows "Missing" on the traceability panel.Fix: widen the alternative to
tests?[\s-]+only, matchingtest only,test-only,tests only, andtests-onlywhile leaving unrelated PR text unchanged.No linked issue: this repo's
linkedIssuePolicyispreferred, and this is a small, self-evident one-token regex correctness fix parallel to the merged docs-only fix (#1905).Scope
fix(signals): …).CONTRIBUTING.md; no UI/API/schema/migration changes.Validation
git diff --checknpm run typechecknpm run test:coverage— newhasClearNoIssueRationale test-only spellingtests cover space, hyphenated, embedded body, and negative cases on the changed regex branch.npm run test:ciIf any required check was skipped, explain why:
Safety
Notes
hasClearNoIssueRationale({ title: "test-only: lock regression", body: "" })returnedfalse(should betrue);"test only: …"also returnedfalse. After the fix both returntrue;"Add tests for classifier"still returnsfalse.