Skip to content

Commit 05a0223

Browse files
committed
fix(projects): fix get all tags order by version
1 parent e940d99 commit 05a0223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { GitCommit, GitCommitAuthor, GithubConfig, RawGitCommit, Reference,
77

88
/** Get the total git tags */
99
export async function getTotalGitTags() {
10-
const tagStr = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=creatordate']);
10+
const tagStr = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=v:refname']);
1111

1212
const tags = tagStr.split('\n');
1313

0 commit comments

Comments
 (0)