mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-05 22:22:44 +00:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
module.exports = {
|
|
types: [
|
|
{ types: ["feat", "feature"], label: "🎉 New Features" },
|
|
{ types: ["fix", "bugfix"], label: "🐛 Bugfixes" },
|
|
{ types: ["improvements", "enhancement"], label: "🔨 Improvements" },
|
|
{ types: ["perf"], label: "🏎️ Performance Improvements" },
|
|
{ types: ["build", "ci"], label: "🏗️ Build System" },
|
|
{ types: ["refactor"], label: "🪚 Refactors" },
|
|
{ types: ["doc", "docs"], label: "📚 Documentation Changes" },
|
|
{ types: ["test", "tests"], label: "🔍 Tests" },
|
|
{ types: ["style"], label: "💅 Code Style Changes" },
|
|
{ types: ["chore"], label: "🧹 Chores" },
|
|
{ types: ["other"], label: "Other Changes" },
|
|
],
|
|
|
|
excludeTypes: ["other"],
|
|
|
|
renderTypeSection: function (label, commits) {
|
|
let text = `\n## ${label}\n`;
|
|
|
|
commits.forEach((commit) => {
|
|
text += `- ${commit.subject}\n`;
|
|
});
|
|
|
|
return text;
|
|
},
|
|
|
|
renderChangelog: function (release, changes) {
|
|
const now = new Date();
|
|
return `# ${release} - ${now.toISOString().substr(0, 10)}\n` + changes + "\n\n";
|
|
},
|
|
}; |