From 36bc0b7ef4343701272ad094ba7c1a2e25b0039f Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Thu, 16 Jul 2026 00:15:21 +0800 Subject: [PATCH] Improve error message for lint-change script (#19641) Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- scripts/lint-changelog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lint-changelog.js b/scripts/lint-changelog.js index 522e5af89..87dae5f28 100644 --- a/scripts/lint-changelog.js +++ b/scripts/lint-changelog.js @@ -114,7 +114,9 @@ for (const category of CHANGELOG_CATEGORIES) { } const titleMatch = content.match(titleRegex); if (!titleMatch) { - showErrorMessage(`[${displayPath}]: Something wrong in title.`); + showErrorMessage( + `[${displayPath}]: Invalid title format. Expected: "#### (#12345 by @author)".`, + ); continue; } const [, title] = titleMatch;