Skip to content

Commit 5681cda

Browse files
committed
Add changelog generator config
1 parent 9a67a4a commit 5681cda

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/tag-changelog-config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
types: [
3+
{ types: ["other"], label: "Commits" },
4+
],
5+
6+
renderTypeSection: function (label, commits) {
7+
let text = `\n## ${label}\n`;
8+
9+
commits.forEach((commit) => {
10+
text += `- ${commit.subject}\n`;
11+
});
12+
13+
return text;
14+
},
15+
16+
renderChangelog: function (release, changes) {
17+
const now = new Date();
18+
return `# ${release} - ${now.toISOString().substr(0, 10)}\n` + changes + "\n\n";
19+
},
20+
};

0 commit comments

Comments
 (0)