From 71521e24684f4380ac59ee7f1a055f1f4992b6f7 Mon Sep 17 00:00:00 2001 From: glorysr1209-png Date: Mon, 1 Jun 2026 08:26:21 -0400 Subject: [PATCH] fix: downgrade maintainer-authored issues in quality reports --- src/signals/engine.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/signals/engine.ts b/src/signals/engine.ts index f114bd9464..08f2c9fcc8 100644 --- a/src/signals/engine.ts +++ b/src/signals/engine.ts @@ -1911,6 +1911,9 @@ export function buildIssueQualityReport( ...(linkedWorkCount === 0 ? ["No active PR is linked in cached metadata."] : []), ]; const warnings = [ + ...(isMaintainerAssociation(issue.authorAssociation) + ? ["Issue was opened by a maintainer-associated account."] + : []), ...(bodyLength < 80 ? ["Issue body is thin; contributor may need more proof before acting."] : []), ...(linkedPrs.length > 0 ? [`${linkedPrs.length} active PR(s) already reference this issue.`] : []), ...(linkedMergedPrs.length > 0 ? [`${linkedMergedPrs.length} merged PR(s) already reference this issue.`] : []), @@ -1923,6 +1926,8 @@ export function buildIssueQualityReport( const status: IssueQualityReport["issues"][number]["status"] = linkedWorkCount > 0 || issueCollisions.some((cluster) => cluster.risk === "high") ? "do_not_use" + : isMaintainerAssociation(issue.authorAssociation) + ? "needs_proof" : warnings.some((warning) => /thin|stale|direct-PR/i.test(warning)) ? "needs_proof" : score < 45