chore(changelog): include unreleased and full commit output
This commit is contained in:
30
conventional-changelog.config.cjs
Normal file
30
conventional-changelog.config.cjs
Normal file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
preset: "conventionalcommits",
|
||||
writerOpts: {
|
||||
transform: (commit) => {
|
||||
const typeMap = {
|
||||
feat: "Features",
|
||||
fix: "Bug Fixes",
|
||||
perf: "Performance",
|
||||
refactor: "Refactors",
|
||||
docs: "Documentation",
|
||||
test: "Tests",
|
||||
build: "Build System",
|
||||
ci: "CI",
|
||||
chore: "Chores",
|
||||
revert: "Reverts",
|
||||
}
|
||||
|
||||
const mappedType = typeMap[commit.type]
|
||||
|
||||
if (!mappedType) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
return {
|
||||
...commit,
|
||||
type: mappedType,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user