-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
After updating to v9 and 10, the generated changelog no longer follows the type
and section
specified in the preset.types
configuration.
Steps to reproduce
- Install
v8.0.2
npm install --save-dev @release-it/[email protected]
- Specify some custom
preset
types
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{ "type": "chore", "section": "π Conventional Changelog Maintenance πͺ" }
]
}
}
}
- Stage and commit the update using a
chore
commit type
git add -A && git commit -m "chore: v8.0.2 preset.types test"
- Run a release
- Checking the generated changelog will show the chore commit with the specified
π Conventional Changelog Maintenance πͺ
section heading. - Update to any release between v9.0.0 and v10.0.0
- Stage and commit again using a
chore
commit type
git add -A && git commit -m "chore: 10.0.0 preset.types test"
- Execute a new release
- The generated changelog will show the latest commit as a plain
chore: 10.0.0 preset.types test
text. In other words, it will ignore thepreset.types
configuration and use the git log message format.
Expected behaviour
The latest version should allow using the preset.types
configuration to specify the commit message type and section text to show in the generated CHANGELOGs.
Actual behavior
The latest version ignores the preset.types
configuration and uses the git log
commit format.
Example changelog
Aekal, timmywil, estebancastro and thet
Metadata
Metadata
Assignees
Labels
No labels