Skip to content

Commit

Permalink
fix: no duplicate changelog entries (#471)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lukekarrys committed Aug 26, 2024
1 parent bba605f commit a102a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/release/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Changelog {
return ''
}

return body.join('\n\n').trim()
return body.join('\n').trim()
}
}

Expand Down Expand Up @@ -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(', ')})`)
}
Expand Down

0 comments on commit a102a8b

Please sign in to comment.