Skip to content

preset.types stopped working in v9 and v10Β #110

@oluwatobiss

Description

@oluwatobiss

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

  1. Install v8.0.2
npm install --save-dev @release-it/[email protected]
  1. Specify some custom preset types
"plugins": {
  "@release-it/conventional-changelog": {
    "infile": "CHANGELOG.md",
    "preset": {
      "name": "conventionalcommits",
      "types": [
        { "type": "chore", "section": "🏠 Conventional Changelog Maintenance πŸͺ›" }
      ]
    }
  }
}
  1. Stage and commit the update using a chore commit type
git add -A && git commit -m "chore: v8.0.2 preset.types test"
  1. Run a release
  2. Checking the generated changelog will show the chore commit with the specified 🏠 Conventional Changelog Maintenance πŸͺ› section heading.
  3. Update to any release between v9.0.0 and v10.0.0
  4. Stage and commit again using a chore commit type
git add -A && git commit -m "chore: 10.0.0 preset.types test"
  1. Execute a new release
  2. 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 the preset.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions