From 91e48eedb5997b683820f870d2bb2d8897c9baf9 Mon Sep 17 00:00:00 2001 From: astone123 Date: Tue, 7 Feb 2023 12:45:50 -0700 Subject: [PATCH] chore: update changelog validation example --- scripts/semantic-commits/validate-changelog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/semantic-commits/validate-changelog.js b/scripts/semantic-commits/validate-changelog.js index fef8ea1b4f14..4f8f9c89c679 100644 --- a/scripts/semantic-commits/validate-changelog.js +++ b/scripts/semantic-commits/validate-changelog.js @@ -38,7 +38,7 @@ function _getResolvedMessage (semanticType, prNumber, associatedIssues = []) { function _printChangeLogExample (semanticType, prNumber, associatedIssues = []) { const resolveMessage = _getResolvedMessage(semanticType, prNumber, associatedIssues) - return `${userFacingChanges[semanticType].section}\n - . ${resolveMessage}` + return `${userFacingChanges[semanticType].section}\n\n - . ${resolveMessage}` } /** @@ -132,7 +132,7 @@ async function validateChangelog ({ changedFiles, nextVersion, pendingRelease, c errors.push(`A changelog entry was not found in cli/CHANGELOG.md.`) if (commits.length === 1) { - errors.push(`Please add a changelog entry that describes the changes. Include this entry under the section:/\n\n${_printChangeLogExample(commits[0].semanticType, commits[0].prNumber, commits[0].associatedIssues)}`) + errors.push(`Please add a changelog entry that describes the changes. Include this entry under the section:\n\n${_printChangeLogExample(commits[0].semanticType, commits[0].prNumber, commits[0].associatedIssues)}`) return _handleErrors(errors) }