feat(post): custom release note generation

This commit is contained in:
Stephan Bönnemann
2015-04-24 15:52:54 +02:00
parent 3369f31a8d
commit 323b5d5bf8
3 changed files with 22 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
'use strict'
var readFile = require('fs').readFileSync
var changelog = require('conventional-changelog')
var parseUrl = require('github-url-from-git')
module.exports = function (cb) {
var pkg = JSON.parse(readFile('./package.json'))
var repository = pkg.repository ? parseUrl(pkg.repository.url) : null
changelog({
version: pkg.version,
repository: repository,
file: false
}, cb)
}