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:
1 parent
314e61a8f3
commit
36bc0b7ef4
1 file changed
+3
-1
@@ -114,7 +114,9 @@ for (const category of CHANGELOG_CATEGORIES) {
|
|||||||
}
|
}
|
||||||
const titleMatch = content.match(titleRegex);
|
const titleMatch = content.match(titleRegex);
|
||||||
if (!titleMatch) {
|
if (!titleMatch) {
|
||||||
showErrorMessage(`[${displayPath}]: Something wrong in title.`);
|
showErrorMessage(
|
||||||
|
`[${displayPath}]: Invalid title format. Expected: "#### <title> (#12345 by @author)".`,
|
||||||
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const [, title] = titleMatch;
|
const [, title] = titleMatch;
|
||||||
|
|||||||
Reference in new issue
Block a user