fix(signals): match hyphenated refactor-only no-issue rationale - #2418
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 05:07:37 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 1 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2418 +/- ##
=======================================
Coverage 95.82% 95.82%
=======================================
Files 224 224
Lines 24975 24975
Branches 9076 9076
=======================================
Hits 23933 23933
Misses 428 428
Partials 614 614
🚀 New features to boost your workflow:
|
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 (docs-only), #1993 (test-only), and #2117 (ci-only), refactor-only PRs using the same Conventional Commits spelling were still missed.Consequence: a refactor-only PR with no linked issue — e.g.
refactor-only: split helper— on a repo withlinkedIssueGateMode === "block"can hithardLinkedIssueBlock, fail the gate, and be auto-closed despite a valid rationale.Fix: widen the alternative to
refactor[\s-]+only, matchingrefactor only,refactor-only, and embedded body forms while leaving unrelated refactor mentions 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 (#1905), test-only (#1993), and ci-only (#2117) fixes.Scope
fix(signals): …).CONTRIBUTING.md; no UI/API/schema/migration changes.Validation
git diff --checknpm run typechecknpm run test:coverage— newhasClearNoIssueRationale refactor-only spellingtests cover space, hyphenated, embedded body, and negative cases.npm run test:ciIf any required check was skipped, explain why:
Safety
Notes
hasClearNoIssueRationale({ title: "refactor-only: split helper", body: "" })returnedfalse(should betrue);"Refactor queue processor"still returnsfalse.