We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09c94bb commit aabfcc4Copy full SHA for aabfcc4
generateNotes.js
@@ -1,9 +1,14 @@
1
const changelog = require('conventional-changelog')
2
const parseUrl = require('github-url-from-git')
3
+const execSync = require('child_process').execSync;
4
+
5
+const describe = () => execSync('git describe --tags master', { encoding: 'utf8' });
6
+const baseTag = (tag) => tag.replace(/(v[0-9.]+)(.*)/, '$1').trim();
7
+const lastTag = () => baseTag(describe());
8
9
module.exports = function (pluginConfig, {pkg}, cb) {
10
const repository = pkg.repository ? parseUrl(pkg.repository.url) : null
- const from = "v2.3.0"; // TODO: set to git tag of last official version
11
+ const from = lastTag();
12
13
changelog({
14
version: pkg.version,
0 commit comments