31 lines
585 B
JavaScript
31 lines
585 B
JavaScript
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,
|
|
}
|
|
},
|
|
},
|
|
}
|