ci(scripts): adjust the output format of the changelog

This commit is contained in:
dragonish 2025-08-16 22:21:24 +08:00
parent 1d9f2c593d
commit 34fd679962
No known key found for this signature in database
GPG key ID: 6F42FA9E807A5177
2 changed files with 26 additions and 0 deletions

View file

@ -56,4 +56,17 @@ module.exports = {
"init",
"merge",
],
renderTypeSection: function (label, commits, includeCommitBody) {
let text = `\n## ${label}\n`;
commits.forEach((commit) => {
const scope = commit.scope ? `**${commit.scope}:** ` : "";
text += `- ${scope}${commit.subject} (${commit.sha})\n`;
if (commit.body && includeCommitBody) {
text += `${commit.body}\n`;
}
});
return text;
},
};

View file

@ -56,4 +56,17 @@ module.exports = {
"init",
"merge",
],
renderTypeSection: function (label, commits, includeCommitBody) {
let text = `\n## ${label}\n`;
commits.forEach((commit) => {
const scope = commit.scope ? `**${commit.scope}:** ` : "";
text += `- ${scope}${commit.subject} (${commit.sha})\n`;
if (commit.body && includeCommitBody) {
text += `${commit.body}\n`;
}
});
return text;
},
};