From a788e1c2070b0898fe8a6f6271188c75a4d1db10 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Fri, 10 Oct 2014 15:49:36 +0300 Subject: [PATCH] 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 ... ... --- changelog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.js b/changelog.js index cc0a5ce93c32..be32b4a46cb3 100755 --- a/changelog.js +++ b/changelog.js @@ -112,7 +112,7 @@ var printSection = function(stream, title, section, printCommitLinks) { } stream.write(')\n'); } else { - stream.write(util.format('%s %s', prefix, commit.subject)); + stream.write(util.format('%s %s\n', prefix, commit.subject)); } }); }); @@ -188,6 +188,7 @@ var getPreviousTag = function() { var generate = function(version, file) { + getPreviousTag().then(function(tag) { console.log('Reading git log since', tag); readGitLog('^fix|^feat|^perf|BREAKING', tag).then(function(commits) {