Skip to content

Commit c44d538

Browse files
tsvetomirgyoshev
authored andcommitted
fix: more robust detection for last tag
1 parent 5989217 commit c44d538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generateNotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const changelog = require('conventional-changelog')
22
const parseUrl = require('github-url-from-git')
33
const execSync = require('child_process').execSync;
44

5-
const lastTag = () => execSync('git describe --tags --abbrev=0 origin/master', { encoding: 'utf8' }).trim();
5+
const lastTag = () => execSync('git describe --tags --match "v[0-9]*" --abbrev=0 origin/master', { encoding: 'utf8' }).trim();
66

77
module.exports = function (pluginConfig, {pkg}, cb) {
88
const repository = pkg.repository ? parseUrl(pkg.repository.url) : null

0 commit comments

Comments
 (0)