mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
fix(release): add shortHash to commits for proper link display in changelog
This commit is contained in:
parent
9070f8f4a1
commit
7d2a9f42c5
1 changed files with 5 additions and 0 deletions
|
|
@ -122,6 +122,11 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
|
||||
// 确保 commit 有短 hash 用于显示
|
||||
if (commit.hash) {
|
||||
commit.shortHash = commit.hash.substring(0, 7);
|
||||
}
|
||||
|
||||
// 保留其他所有提交
|
||||
return commit;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue