release: Stricter checking of `CHANGELOG.md`

pull/4792/head
Richard Hansen 2021-02-15 16:48:28 -05:00 committed by John McLear
parent 5c48ebb406
commit 18c8838a33
1 changed files with 1 additions and 3 deletions

View File

@ -107,9 +107,7 @@ if (!newVersion) {
throw new Error('Unable to generate new version from input'); throw new Error('Unable to generate new version from input');
} }
const changelogIncludesVersion = changelog.indexOf(newVersion) !== -1; if (!changelog.startsWith(`# ${newVersion}\n`)) {
if (!changelogIncludesVersion) {
throw new Error(`No changelog record for ${newVersion}, please create changelog record`); throw new Error(`No changelog record for ${newVersion}, please create changelog record`);
} }