Customizing code convention
Opened this issue · 3 comments
Is your feature request related to a problem? Please describe.
The idea of PR #56 seems awesome. It could bring some configuration freedom like in git-cliff. This would also free up those who would like to translate the CHANGELOG.md sections into their native language.
Describe the solution you'd like
I'll push solution today
Ok, here we are
Example
[tool.git-changelog]
convention = "conventional"
sections = "build,chore,doc,n,feat"
minor-types = "feat,n"
...
[tool.git-changelog.rewrite-convention]
build = "Build"
chore = "Chore"
ci = "Continuous Integration"
deps = "Dependencies"
doc = "Documentation"
feat = "Features"
n = "Notes"
We initially choose our convention from the basic, conventional, or angular options. If we want to customize (or translate) our convention, we define a rewrite-convention
with all the TYPES we intend to use. In this case, specifying sections
is mandatory. Additionally, we can use minor-types
to specify types for minor versions, especially if the default convention option doesn't suit our needs."