Skip to content

Commit a102a8b

Browse files
authored
fix: no duplicate changelog entries (#471)
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
1 parent bba605f commit a102a8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/release/changelog.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Changelog {
5151
return ''
5252
}
5353

54-
return body.join('\n\n').trim()
54+
return body.join('\n').trim()
5555
}
5656
}
5757

@@ -154,7 +154,7 @@ class ChangelogNotes {
154154
const subject = wrapSpecs(commit.bareMessage)
155155
entry.push([scope, subject].filter(Boolean).join(' '))
156156

157-
// A list og the authors github handles or names
157+
// A list of the authors github handles or names
158158
if (commit.authors.length) {
159159
entry.push(`(${commit.authors.join(', ')})`)
160160
}

0 commit comments

Comments
 (0)