Skip to content

Commit 6b3b9a1

Browse files
committed
chore: add WIP generateNotes plugin
1 parent 7569b98 commit 6b3b9a1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

generateNotes.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const changelog = require('conventional-changelog')
2+
const parseUrl = require('github-url-from-git')
3+
4+
module.exports = function (pluginConfig, {pkg}, cb) {
5+
const repository = pkg.repository ? parseUrl(pkg.repository.url) : null
6+
const from = "v2.3.0"; // TODO: set to git tag of last official version
7+
8+
changelog({
9+
version: pkg.version,
10+
repository: repository,
11+
from: from,
12+
file: false
13+
}, cb)
14+
};
15+

0 commit comments

Comments
 (0)