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>
This commit is contained in:
fisker CheungandCopilot Autofix powered by AI authored and GitHub committed 2026-07-16 00:15:21 +08:00
1 parent 314e61a8f3
commit 36bc0b7ef4
1 file changed
+3 -1
+3 -1
View File
@@ -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: "#### <title> (#12345 by @author)".`,
);
continue;
}
const [, title] = titleMatch;