Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4474633

Browse files
gkalpakpetebacondarwin
authored andcommitted
chore(CHANGELOG): add an extra new line after each item in the "BREAKING CHANGES" list
This ensures that the next item will appear on a new line and be properly parsed as new list item (and not as the continuation of the current item), even if the current item does not end with a newline character. Currently, it would result is something like this: - **item 1**: due to ... blah1 blah1 blah1- **item 2**: due to... blah2 blah2 blah2 instead of the intended: - **item 1**: duo to ... ... - **item 2**: due to ... ...
1 parent 9a2b6ef commit 4474633

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

changelog.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var printSection = function(stream, title, section, printCommitLinks) {
112112
}
113113
stream.write(')\n');
114114
} else {
115-
stream.write(util.format('%s %s', prefix, commit.subject));
115+
stream.write(util.format('%s %s\n', prefix, commit.subject));
116116
}
117117
});
118118
});
@@ -188,6 +188,7 @@ var getPreviousTag = function() {
188188

189189

190190
var generate = function(version, file) {
191+
191192
getPreviousTag().then(function(tag) {
192193
console.log('Reading git log since', tag);
193194
readGitLog('^fix|^feat|^perf|BREAKING', tag).then(function(commits) {

0 commit comments

Comments
 (0)