Skip to content

Commit 5c13284

Browse files
committed
feat: support perf by default in changelog
1 parent 93def3c commit 5c13284

File tree

6 files changed

+28
-27
lines changed

6 files changed

+28
-27
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ Config is accepted in `pyproject.toml` (priority, following example), `.cz.toml`
297297
'🚨 Breaking Changes',
298298
'✨ New Features',
299299
'🐛 Bug Fixes',
300+
'⚡ Performance Improvements',
300301
'📖 Documentation',
301302
'🔧 Code Refactoring',
302303
'🗑️ Removals',
@@ -310,6 +311,7 @@ Config is accepted in `pyproject.toml` (priority, following example), `.cz.toml`
310311
'Breaking Changes',
311312
'New Features',
312313
'Bug Fixes',
314+
'Performance Improvements',
313315
'Documentation',
314316
'Code Refactoring',
315317
'Removals',
@@ -322,7 +324,7 @@ Config is accepted in `pyproject.toml` (priority, following example), `.cz.toml`
322324
# - Redefine which types are shown in the changelog -
323325
# Note: You need to list here ALL types that you want to have in the changelog - included default ones
324326
# Note: The order in this list doesn't matter — if you want to change the sections' order too, use with "change_type_order."
325-
types_in_changelog = ["feat", "fix", "refactor", "style", "ci"]
327+
types_in_changelog = ["feat", "fix", "refactor", "style", "ci", "perf"]
326328

327329

328330
# - Custom text that you can append to release notes output -

czespressif/defaults.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
'bump': 'PATCH',
3131
'changelog': True,
3232
},
33+
{
34+
'type': 'perf',
35+
'description': 'A code change that improves performance',
36+
'heading': 'Performance Improvements',
37+
'emoji': '⚡',
38+
'bump': 'PATCH',
39+
'changelog': True,
40+
},
3341
{
3442
'type': 'docs',
3543
'description': 'Documentation only change',

tests/__snapshots__/test_changelog/test_changelog_cz_default_full.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212

1313
## v1.2.0 (2024-07-15)
1414

15-
### Refactor
16-
17-
- optimize database queries for user data retrieval
18-
19-
## v1.2.0.rc0 (2024-06-10)
20-
2115
### Fix
2216

2317
- **frontend**: correct layout issues in user profile page
2418

19+
### Refactor
20+
21+
- optimize database queries for user data retrieval
22+
2523
## v1.1.0 (2024-05-23)
2624

2725
### Fix

tests/__snapshots__/test_changelog/test_changelog_czespressif_full.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
> All notable changes to this project are documented in this file.
88
> This list is not exhaustive - only important changes, fixes, and new features in the code are reflected here.
99
10-
<div align="center">
10+
<div style="text-align: center;">
1111
<a href="https://keepachangelog.com/en/1.1.0/">
1212
<img alt="Static Badge" src="https://img.shields.io/badge/Keep%20a%20Changelog-v1.1.0-salmon?logo=keepachangelog&logoColor=black&labelColor=white&link=https%3A%2F%2Fkeepachangelog.com%2Fen%2F1.1.0%2F">
1313
</a>
@@ -36,14 +36,6 @@
3636

3737
## v1.2.0 (2024-07-15)
3838

39-
### 🔧 Code Refactoring
40-
41-
- optimize database queries for user data retrieval *(Charlie Green - e7c1d8b)*
42-
43-
---
44-
45-
## v1.2.0.rc0 (2024-06-10)
46-
4739
### 🐛 Bug Fixes
4840

4941
- **frontend**: correct layout issues in user profile page *(Bob Smith - c3e7b3b)*
@@ -52,6 +44,10 @@
5244

5345
- update API documentation for user endpoint *(Eve Martin - f8d7e1c)*
5446

47+
### 🔧 Code Refactoring
48+
49+
- optimize database queries for user data retrieval *(Charlie Green - e7c1d8b)*
50+
5551
---
5652

5753
## v1.1.0 (2024-05-23)
@@ -102,7 +98,7 @@
10298

10399
---
104100

105-
<div align="center">
101+
<div style="text-align: center;">
106102
<small>
107103
<b>
108104
<a href="https://www.github.com/espressif/cz-plugin-espressif">Commitizen Espressif plugin</a>

tests/__snapshots__/test_changelog/test_changelog_czespressif_full_no_emoji.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
> All notable changes to this project are documented in this file.
88
> This list is not exhaustive - only important changes, fixes, and new features in the code are reflected here.
99
10-
<div align="center">
10+
<div style="text-align: center;">
1111
<a href="https://keepachangelog.com/en/1.1.0/">
1212
<img alt="Static Badge" src="https://img.shields.io/badge/Keep%20a%20Changelog-v1.1.0-salmon?logo=keepachangelog&logoColor=black&labelColor=white&link=https%3A%2F%2Fkeepachangelog.com%2Fen%2F1.1.0%2F">
1313
</a>
@@ -36,14 +36,6 @@
3636

3737
## v1.2.0 (2024-07-15)
3838

39-
### Code Refactoring
40-
41-
- optimize database queries for user data retrieval *(Charlie Green - e7c1d8b)*
42-
43-
---
44-
45-
## v1.2.0.rc0 (2024-06-10)
46-
4739
### Bug Fixes
4840

4941
- **frontend**: correct layout issues in user profile page *(Bob Smith - c3e7b3b)*
@@ -52,6 +44,10 @@
5244

5345
- update API documentation for user endpoint *(Eve Martin - f8d7e1c)*
5446

47+
### Code Refactoring
48+
49+
- optimize database queries for user data retrieval *(Charlie Green - e7c1d8b)*
50+
5551
---
5652

5753
## v1.1.0 (2024-05-23)
@@ -102,7 +98,7 @@
10298

10399
---
104100

105-
<div align="center">
101+
<div style="text-align: center;">
106102
<small>
107103
<b>
108104
<a href="https://www.github.com/espressif/cz-plugin-espressif">Commitizen Espressif plugin</a>

tests/__snapshots__/test_czespressif/test_example.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Commit types in this project:
1616

1717
feat: A new feature
1818
fix: A bug fix
19+
perf: A code change that improves performance
1920
docs: Documentation only change
2021
refactor: A changeset neither fixing a bug nor adding a feature
2122
remove: Removing code or files

0 commit comments

Comments
 (0)