diff options
Diffstat (limited to 'changelog.js')
| -rwxr-xr-x | changelog.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/changelog.js b/changelog.js index 59d72eeb..746b0f9d 100755 --- a/changelog.js +++ b/changelog.js @@ -38,10 +38,14 @@ var parseRawCommit = function(raw) { lines.forEach(function(line) { match = line.match(/Closes\s#(\d+)/); if (match) msg.closes.push(parseInt(match[1])); - - match = line.match(/Breaks\s(.*)/); - if (match) msg.breaks.push(match[1]); }); + + match = raw.match(/BREAKING CHANGE:([\s\S]*)/); + if (match) { + console.log('found!!!') + msg.breaks.push(match[1]); + } + msg.body = lines.join('\n'); match = msg.subject.match(/^(.*)\((.*)\)\:\s(.*)$/); |
