From 5d438e3f25ccff6aa76bc2daef371c13a03211d1 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Fri, 17 Apr 2020 03:38:11 +0300 Subject: [PATCH] chore: check "JS:" in title in lint-changelog.js --- 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 c69f92e2fada..97b3f8c2f131 100644 --- a/scripts/lint-changelog.js +++ b/scripts/lint-changelog.js @@ -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.` );