fix(release): add shortHash to commits for proper link display in changelog

This commit is contained in:
Quorafind 2025-09-04 16:38:50 +08:00
parent 9070f8f4a1
commit 7d2a9f42c5

View file

@ -122,6 +122,11 @@ module.exports = {
}
}
// 确保 commit 有短 hash 用于显示
if (commit.hash) {
commit.shortHash = commit.hash.substring(0, 7);
}
// 保留其他所有提交
return commit;
},