mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Apply suggestion from @mbg
Co-authored-by: Michael B. Gale <mbg@github.com>
This commit is contained in:
@@ -153,7 +153,7 @@ export function addBodyLinesToUnreleasedSection(
|
||||
|
||||
const unreleasedSection = changelog.sections[0];
|
||||
if (getHeader(unreleasedSection) !== UNRELEASED_PLACEHOLDER) {
|
||||
throw Error("'[UNRELEASED]' is not the first section of 'CHANGELOG.md'");
|
||||
throw Error(`'${UNRELEASED_PLACEHOLDER}' is not the first section of 'CHANGELOG.md'`);
|
||||
}
|
||||
|
||||
if (unreleasedSection.bodyLines.includes(NO_CHANGES_STR)) {
|
||||
|
||||
Reference in New Issue
Block a user