From 686dc8ccfd86a302b2cff9f41bad8f472cec1437 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 26 Aug 2024 11:43:35 -0700 Subject: [PATCH] fix: no duplicate changelog entries release-please will re-inject the entire changelog when looking for the existing dependencies section in some cases. Have multiple newlines between sections of the changelog triggers that behavior because it looks for lines that do no start with '*' but it does not account for empty lines --- lib/release/changelog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/release/changelog.js b/lib/release/changelog.js index 9ee059a7..65af14e7 100644 --- a/lib/release/changelog.js +++ b/lib/release/changelog.js @@ -51,7 +51,7 @@ class Changelog { return '' } - return body.join('\n\n').trim() + return body.join('\n').trim() } } @@ -154,7 +154,7 @@ class ChangelogNotes { const subject = wrapSpecs(commit.bareMessage) entry.push([scope, subject].filter(Boolean).join(' ')) - // A list og the authors github handles or names + // A list of the authors github handles or names if (commit.authors.length) { entry.push(`(${commit.authors.join(', ')})`) }