mirror of
https://github.com/dragonish/obsidian-heading-decorator.git
synced 2026-07-22 05:42:05 +00:00
ci(scripts): adjust the output format of the changelog
This commit is contained in:
parent
1d9f2c593d
commit
34fd679962
2 changed files with 26 additions and 0 deletions
|
|
@ -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;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
13
.github/scripts/tag-changelog-config.cjs
vendored
13
.github/scripts/tag-changelog-config.cjs
vendored
|
|
@ -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;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue