From a22f0cbf68f1cc82bf4736ab236a2566f0e55163 Mon Sep 17 00:00:00 2001 From: Naveen Singh Date: Thu, 8 Oct 2026 13:30:46 +0530 Subject: [PATCH] fix: improve issue comment messages --- scripts/policy.cjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/policy.cjs b/scripts/policy.cjs index 9866ded..bdf381f 100644 --- a/scripts/policy.cjs +++ b/scripts/policy.cjs @@ -20,7 +20,7 @@ const ISSUE_FIELD_GUIDANCE = { 'expected-behavior': ['Expected behavior', 'Describe what should happen and when.'], 'feature-description': ['Feature description', 'Describe the requested change clearly, including how the app should behave.'], 'steps-to-reproduce': ['Steps to reproduce', 'Describe step-by-step how to reproduce or observe the problem.'], - 'why-is-the-feature-requested': ['Reason for the feature', 'Explain the problem or limitation this change would solve.'] + 'why-is-the-feature-requested': ['Why do you want this feature?', 'Describe the problem or limitation this feature would solve, or how it would help you.'] }; const ISSUE_RESULTS = [ @@ -440,11 +440,11 @@ function missingDetailsMessage(fields, issueFieldIds) { seen.add(field.id); const [label, prompt] = fieldGuidance; - guidance.push(`- **${label}** (${field.state}): ${prompt}`); + guidance.push(`- **${label}** ${prompt}`); } if (guidance.length === 0) return ISSUE_MESSAGES.request_missing_details; - return `Thanks for the report. A few fields need more detail before we can investigate:\n\nMissing or incomplete fields:\n\n${guidance.join('\n')}`; + return `Thanks for the report. Please edit your issue to add the following details:\n\n${guidance.join('\n')}`; } function requiredIssueFieldIds(issueForms) {