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 c8abc46 commit 5989217Copy full SHA for 5989217
generateNotes.js
@@ -2,9 +2,7 @@ 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 origin/master', { encoding: 'utf8' });
6
-const baseTag = (tag) => tag.replace(/(v[0-9.]+)(.*)/, '$1').trim();
7
-const lastTag = () => baseTag(describe());
+const lastTag = () => execSync('git describe --tags --abbrev=0 origin/master', { encoding: 'utf8' }).trim();
8
9
module.exports = function (pluginConfig, {pkg}, cb) {
10
const repository = pkg.repository ? parseUrl(pkg.repository.url) : null
0 commit comments