Skip to content

Commit

Permalink
chore: check "JS:" in title in lint-changelog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Apr 17, 2020
1 parent 915327d commit 5d438e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lint-changelog.js
Expand Up @@ -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.`
);
Expand Down

0 comments on commit 5d438e3

Please sign in to comment.