chore: check "JS:" in title in lint-changelog.js
This commit is contained in:
1 parent
915327d61d
commit
5d438e3f25
1 file changed
+3
-1
@@ -117,7 +117,9 @@ for (const category of CHANGELOG_CATEGORIES) {
|
||||
}
|
||||
const [, title] = titleMatch;
|
||||
const categoryInTitle = title.split(":").shift().trim();
|
||||
if (CHANGELOG_CATEGORIES.includes(categoryInTitle.toLowerCase())) {
|
||||
if (
|
||||
[...CHANGELOG_CATEGORIES, "js"].includes(categoryInTitle.toLowerCase())
|
||||
) {
|
||||
showErrorMessage(
|
||||
`[${displayPath}]: Please remove "${categoryInTitle}:" in title.`
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user