Skip to content

Changelog change type sections are ordered "incorrectly" #402

Closed
@lobotmcj

Description

@lobotmcj

Description

The default value for change_type_order uses lower-case "feat", "perf", etc instead of "Feat", "Perf", and is therefore ignored in changelog output

Steps to reproduce

  1. mkdir /tmp/cztest && cd /tmp/cztest
  2. git init
  3. touch foo && git add foo && git commit -m "feat: first commit"
  4. touch foo2 && git add foo2 && git commit -m "perf: second commit"
    image
  5. cz ch --dry-run
    image
  6. echo -e "[tool.commitizen]\nchange_type_order = [\"Feat\", \"Perf\"]" > pyproject.toml
  7. cz ch --dry-run
    image

Current behavior

The default change_type_order is ineffective and pre #323 LIFO ordering is used in the changelog

Desired behavior

Changelog sections should be ordered according to https://github.com/commitizen-tools/commitizen/blob/master/commitizen/defaults.py#L43

Environment

  • commitizen version: 2.17.12
  • python version: 3.6.9
  • operating system: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions