Skip to content

Commit 3508884

Browse files
tsvetomirgyoshev
authored andcommitted
fix: ignore dev tags for relnotes
Fixes #2
1 parent c44d538 commit 3508884

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

generateNotes.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ 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 --match "v[0-9]*" --abbrev=0 origin/master', { encoding: 'utf8' }).trim();
5+
const lastTag = () => execSync(
6+
'git describe --tags --match "v[0-9]*" --exclude="*dev*" --abbrev=0 origin/master',
7+
{ encoding: 'utf8' }
8+
).trim();
69

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

0 commit comments

Comments
 (0)