This repository has been archived by the owner on Jan 19, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(configuration): add changelog conf on tag workflow
- Loading branch information
1 parent
fd814a9
commit 84a65b9
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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", "chore"], | ||
|
||
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"; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters