Skip to content

Commit

Permalink
fix: fix exclude pattern for pre-release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon committed Jan 2, 2024
1 parent 76fa748 commit eb91431
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gitCommitConvention.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = function (convention, commitAnchor = 'HEAD') {
return await Git.getLastTag({
commitAnchor: commitRef,
matchPattern: convention.releaseTagGlobPattern,
excludePattern: '*-*', // exclude pre-release versions
excludePattern: `${convention.releaseTagGlobPattern}-*`, // exclude pre-release versions
})
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "git-conventional-commits",
"version": "2.6.5",
"version": "2.6.6",
"description": "git conventional commits util",
"licence": "GPLv3",
"main": "cli.js",
Expand Down

0 comments on commit eb91431

Please sign in to comment.