add explanatory note to changelog
This commit is contained in:
parent
90cdf3d30e
commit
e03b84e760
@ -1,3 +1,5 @@
|
||||
The attributions below are for work that has been incorporated into the script and do not indicate direct involvement in this fork. All changes to the script are the fault of the maintainer (ccd0).
|
||||
|
||||
### v1.9.3.0
|
||||
*2014-09-14*
|
||||
|
||||
|
||||
@ -307,6 +307,7 @@ module.exports = (grunt) ->
|
||||
headerPrefix = new Array(+headerLevel + 1).join '#'
|
||||
today = grunt.template.today 'yyyy-mm-dd'
|
||||
changelog = grunt.file.read 'CHANGELOG.md'
|
||||
[_, note, body] = changelog.match /([^]*?\n\n)([^]*)/
|
||||
|
||||
grunt.file.write 'CHANGELOG.md', "#{headerPrefix} v#{version} \n*#{today}*\n\n#{changelog}"
|
||||
grunt.file.write 'CHANGELOG.md', "#{note}#{headerPrefix} v#{version} \n*#{today}*\n\n#{body}"
|
||||
grunt.log.ok "Changelog updated for v#{version}."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user