Skip to content

Commit c8abc46

Browse files
authored
fix: use remote branch when determining tags
The local might be out of date
1 parent aabfcc4 commit c8abc46

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 describe = () => execSync('git describe --tags master', { encoding: 'utf8' });
5+
const describe = () => execSync('git describe --tags origin/master', { encoding: 'utf8' });
66
const baseTag = (tag) => tag.replace(/(v[0-9.]+)(.*)/, '$1').trim();
77
const lastTag = () => baseTag(describe());
88

0 commit comments

Comments
 (0)