diff --git a/.changelog.md.j2 b/.changelog.md.j2 index 7e49cf25..292032ba 100644 --- a/.changelog.md.j2 +++ b/.changelog.md.j2 @@ -4,8 +4,17 @@ {% for change_key, changes in entry.changes.items() %} +{% set change_key_map = { + 'BREAKING CHANGE': '🪓 Breaking changes', + 'doc': '📝 Documentation', + 'feat': '💫 New features', + 'fix': '🐛 Bug Fixes', + 'test': '🛡 Tests', + 'rf': '🏠 Refactorings', + 'perf': '🚀 Performance improvements', +} %} {% if change_key %} -## {{ change_key }} +## {{ change_key_map.get(change_key, change_key) }} {% endif %} {% set scopemap = { 'changelog': 'Changelog', diff --git a/pyproject.toml b/pyproject.toml index d1d191c8..df21fd76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -278,12 +278,3 @@ schema_pattern = "(?s)(ci|doc|feat|fix|perf|rf|style|test|chore|revert|bump)(\\( "^BREAKING" = "MAJOR" "^feat" = "MINOR" "^fix" = "PATCH" - -[tool.commitizen.customize.change_type_map] -"BREAKING CHANGE" = "🪓 Breaking changes" -doc = "📝 Documentation" -feat = "💫 New features" -fix = "🐛 Bug Fixes" -test = "🛡 Tests" -rf = "🏠 Refactorings" -perf = "🚀 Performance improvements"