2017-05-19 18:10:50 +03:00
|
|
|
const changelog = require('conventional-changelog')
|
|
|
|
const parseUrl = require('github-url-from-git')
|
2017-06-27 17:51:32 +03:00
|
|
|
const lastTag = require('./lastTag');
|
2017-05-19 18:10:50 +03:00
|
|
|
|
|
|
|
module.exports = function (pluginConfig, {pkg}, cb) {
|
|
|
|
const repository = pkg.repository ? parseUrl(pkg.repository.url) : null
|
2017-05-24 12:19:04 +03:00
|
|
|
const from = lastTag();
|
2017-05-19 18:10:50 +03:00
|
|
|
|
|
|
|
changelog({
|
|
|
|
version: pkg.version,
|
|
|
|
repository: repository,
|
|
|
|
from: from,
|
|
|
|
file: false
|
|
|
|
}, cb)
|
|
|
|
};
|
|
|
|
|