Skip to content

Commit

Permalink
fix: ignore dev tags for relnotes
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
tsvetomir authored and gyoshev committed May 26, 2017
1 parent c44d538 commit 3508884
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generateNotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ const changelog = require('conventional-changelog')
const parseUrl = require('github-url-from-git')
const execSync = require('child_process').execSync;

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

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

0 comments on commit 3508884

Please sign in to comment.