Debian Codegraph @

CHANGELOG.md

raw
1 ## v4.19.0 (2026-09-22)
2
3 ### Feat
4
5 - add extensible commit filters
6
7 ## v4.18.1 (2026-09-13)
8
9 ### Fix
10
11 - preserve blank lines with body length limit (#2080)
12
13 ## v4.18.0 (2026-08-19)
14
15 ### Feat
16
17 - **commit**: add a tag(--body-length-limit) and a function for command commit (#1849)
18
19 ## v4.17.1 (2026-08-17)
20
21 ### Fix
22
23 - **init**: skip hook question when no installer is present
24 - **init**: use prek when installing hooks if pre-commit is missing
25
26 ## v4.17.0 (2026-07-29)
27
28 ### Feat
29
30 - **cmd/version**: add support for `--next USE_GIT_COMMITS`
31
32 ### Fix
33
34 - robuster agents
35 - **version**: remove next from exclusive group
36 - **bump**: use correct type for calling changelog
37
38 ## v4.16.5 (2026-07-16)
39
40 ### Fix
41
42 - exclude star-history API from lychee link checker (#2029)
43
44 ## v4.16.4 (2026-06-22)
45
46 ### Fix
47
48 - **providers/cargo**: don't crash on workspace member with fixed version
49
50 ## v4.16.3 (2026-05-30)
51
52 ### Fix
53
54 - **check**: expand env vars in --rev-range (#2005)
55
56 ## v4.16.2 (2026-05-15)
57
58 ### Fix
59
60 - **tags**: widen prerelease and devrelease tag regexes for SemVer2 (#1972)
61
62 ## v4.16.1 (2026-05-15)
63
64 ### Fix
65
66 - **cz_customize**: derive bump_map_major_version_zero from bump_map (#1977)
67
68 ## v4.16.0 (2026-05-12)
69
70 ### Feat
71
72 - **hooks**: support interactive hooks scripts
73
74 ## v4.15.1 (2026-05-06)
75
76 ### Fix
77
78 - **security**: prevent command injection via shell=True (CWE-78) (#1941)
79
80 ## v4.15.0 (2026-05-03)
81
82 ### Feat
83
84 - **version**: add MANUAL_VERSION, --next and --patch to version command (#1724)
85
86 ## v4.14.0 (2026-05-03)
87
88 ### Feat
89
90 - add `--allow-no-commit` to `changelog` command (#1868)
91
92 ## v4.13.10 (2026-04-11)
93
94 ### Fix
95
96 - **ci**: use commitizen bot to push tags and commits
97 - **init**: set semver2 as default if not python
98 - change deprecated value and bump versions
99
100 ## v4.13.9 (2026-02-25)
101
102 ### Fix
103
104 - avoid raising an exception when a change_type is not defined (#1879)
105
106 ## v4.13.8 (2026-02-18)
107
108 ### Fix
109
110 - **config**: fix contains_commitizen_section failing for completely empty files
111
112 ## v4.13.7 (2026-02-09)
113
114 ### Fix
115
116 - **provider**: use encoding settings in config (#1857)
117
118 ## v4.13.6 (2026-02-07)
119
120 ### Fix
121
122 - **bump**: preserve existing changelog header when `changelog_merge_prerelease` is used with `cz bump --changelog` (#1850)
123
124 ## v4.13.5 (2026-02-05)
125
126 ### Fix
127
128 - **changelog**: add incremental parameter to changelog generation (#1808)
129
130 ## v4.13.4 (2026-02-04)
131
132 ### Fix
133
134 - **pre-commit-hooks**: correct rev-range syntax in commitizen-branch (#1841)
135
136 ## v4.13.3 (2026-02-04)
137
138 ### Refactor
139
140 - **version_schemes**: shorten generate_prerelease (#1838)
141
142 ## v4.13.2 (2026-02-03)
143
144 ### Refactor
145
146 - simplify code with pathlib Path object (#1840)
147 - **tags**: extract version resolution method (#1839)
148
149 ## v4.13.1 (2026-02-03)
150
151 ### Refactor
152
153 - **config**: replace is_empty_config with contains_commitizen_section, improve multi config resolution algorithm (#1842)
154
155 ## v4.13.0 (2026-02-01)
156
157 ### Feat
158
159 - **bump**: add --version-files-only and deprecate --files-only (#1802)
160 - **version**: add --tag tag to version command (#1819)
161 - **cli**: add description when choosing a commit rule (#1825)
162 - **tags**: enable version schemes with less than 3 components (#1705)
163
164 ### Fix
165
166 - **config**: include pyproject.toml in multi config file warning (#1803)
167 - add pytest ruff rule PT and fix missing deprecation warning (#1826)
168 - **message_length_limit**: align the behavior of message_length_limit (#1813)
169 - **cli**: capitalize the first characters of help texts and fix minor grammar errors
170
171 ### Refactor
172
173 - replace hard-coded string "cz_conventional_commits" with DEFAULT_SETTINGS (#1830)
174 - **bump**: fix unbounded variable type issue
175
176 ## v4.12.1 (2026-01-22)
177
178 ### Fix
179
180 - **pre-commit-hooks**: remove magic constants on pre-push hook (#1815)
181
182 ## v4.12.0 (2026-01-19)
183
184 ### Feat
185
186 - **prek**: supporting prek as an alternative to pre-commit and switching to prek (#1799)
187
188 ## v4.11.6 (2026-01-15)
189
190 ### Fix
191
192 - **git**: commit bodies with carriage returns are correctly split by … (#1780)
193
194 ## v4.11.5 (2026-01-15)
195
196 ### Fix
197
198 - **config**: ensure the actually used config file is correct, better test coverage (#1784)
199
200 ## v4.11.4 (2026-01-15)
201
202 ### Fix
203
204 - **cli**: move sys.excepthook override to correct line, rename 'type' parameter, fix no argv test (#1791)
205
206 ## v4.11.3 (2026-01-13)
207
208 ### Fix
209
210 - **bump**: fix the issue that changelog_merge_prerelease not working on cz bump
211
212 ## v4.11.2 (2026-01-12)
213
214 ### Fix
215
216 - **config**: add warning for multiple configuration files and update documentation (#1773)
217
218 ## v4.11.1 (2026-01-03)
219
220 ### Fix
221
222 - **providers**: normalize package names in uv provider for uv.lock matching
223
224 ## v4.11.0 (2025-12-29)
225
226 ### Feat
227
228 - Drop support for Python 3.9 as EOL reached and add Python 3.14 support
229 - add custom validation
230
231 ## v4.10.1 (2025-12-11)
232
233 ### Fix
234
235 - **version**: fix the behavior of cz version --major
236 - **cli**: debug and no_raise can be used together in sys.excepthook
237 - **git**: replace lstrip with strip for compatibility issue
238 - **bump**: remove NotAllowed related to --get-next option, other related refactoring
239
240 ### Refactor
241
242 - **version**: rename class member to align with other classes
243 - **cargo_provider**: cleanup and get rid of potential type errors
244 - **bump**: extract option validation and new version resolution to new functions
245 - **changelog**: raise NotAllow when file_name not passed instead of using assert
246 - **bump**: rename parameter and variables
247
248 ### Perf
249
250 - **ruff**: enable ruff rules TC001~TC006
251 - add TYPE_CHECKING to CzQuestion imports
252
253 ## v4.10.0 (2025-11-10)
254
255 ### Feat
256
257 - add config option for line length warning
258 - **conventional_commits**: allow exclamation in title on BC
259 - **version**: add the ability to just print major or minor version
260 - allow `amend!` prefix as created by `git --fixup=reword:<commit>`
261
262 ### Fix
263
264 - **commands/version**: add missing return
265 - **test**: set terminal width for cli tests
266 - **Init**: raise InitFailedError on keyboard interrupt on pre-commit hook question, simplify logic, remove unreachable code path
267
268 ### Refactor
269
270 - **bump**: cleanup related to update_version_file
271 - **RestructuredTest**: rename variable, fix typo and remove unnecessary string copy
272 - **TomlConfig**: minor cleanups for DX
273 - **Commit**: refactor _prompt_commit_questions and fix some type hint
274 - **hooks**: refactor to improve readability
275 - **Init**: make project_info a module and remove self.project_info
276 - **BaseConfig**: update docstring, extract factory method and remove unnecessary variable assignment
277 - remove self.encoding for better maintainability
278 - **utils**: make get_backup_file_path to return a path for semantic correctness
279 - remove unnecessary class member tag_format
280 - **Bump**: remove use of getattr
281 - **ConventionalCommitsCz**: rewrite message method to make the pattern more clear
282 - **cmd**: unnest try except
283 - **BaseCommitizen**: remove NotImplementedError and make them abstract method
284 - **BaseCommitizen**: construct Style object directly to get rid of potential type error
285
286 ## v4.9.1 (2025-09-10)
287
288 ### Fix
289
290 - **dependency**: move deprecated to project.dependencies
291
292 ## v4.9.0 (2025-09-09)
293
294 ### Feat
295
296 - **check**: add check against default branch
297
298 ### Fix
299
300 - **changelog**: mark get_smart_tag_range as deprecated
301 - **init**: use pre-push as pre-commit stage
302 - **init**: use pre-push as pre-commit stage
303 - **init**: make welcome message easier to read
304 - **Init**: fix a typo in _ask_version_provider options and remove unnecessary filter, use named tuple for options
305 - **ExitCode**: add from_str in ExitCode and replace parse_no_raise with it
306 - raise NoVersionSpecifiedError if version is None, and adjust call sites of get_version
307 - **Changelog**: fix _export_template variable type
308 - **Bump**: rewrite --get-next NotAllowed error message for consistency
309
310 ### Refactor
311
312 - **changelog**: add get_next_tag_name_after_version and test, mark unused for get_smart_tag_range
313 - **changelog**: simplify logic for get_oldest_and_newest_rev
314 - **changelog**: shorten generate_tree_from_commits
315 - **Init**: remove the variable values_to_add and the update_config function for readability
316 - **Init**: remove unnecessary methods from ProjectInfo and refactor _ask_tag
317 - **Init**: fix unbounded variable in _ask_tag_format
318 - **init**: remote extra words
319 - **process_commit_message**: better type and early return
320 - **Init**: extract _get_config_data for readability
321 - **changelog**: shorten condition expression and early return
322 - **Changelog**: remove unnecessary intermediate variables for better readability
323 - **bump**: use a loop to shorten a series of similar NotAllowed exceptions
324 - **Init**: use ternary operator
325 - **TagRules**: extract tag_formats property and simplify list comprehension
326 - **git**: remove redundant if branch
327 - **ScmProvider**: replace sorted with max
328 - **ExpectedExit**: make the constructor more compact
329 - **ParseArgs**: simplify __call__ function body
330
331 ## v4.8.4 (2025-09-05)
332
333 ### Fix
334
335 - members in workspace, use exclude
336 - cargo workspaces
337
338 ### Refactor
339
340 - reduce code indentation
341
342 ## v4.8.3 (2025-06-09)
343
344 ### Fix
345
346 - **cli**: update description for deprecate warning
347 - **commit**: emit deprecated warning of cz commit -s
348 - **Check**: make parameters backward compatible
349 - **BaseConfig**: mypy error
350 - **deprecated**: mark deprecate in v5
351 - **defaults**: add non-capitalized default constants back and deprecated warning
352
353 ### Refactor
354
355 - **jira**: refactor message
356 - **conventional_commits**: use TypedDict for answers
357 - **conventional_commits**: make schema_pattern more readable
358 - do not guess if changelog format is provided
359 - **check**: compile once and rename variable
360 - **questions**: type questions with TypedDict
361 - **bump**: simplify nested if
362 - **git**: retype get_commits parameter to make it more friendly to call sites
363 - **git**: simplify tag logic
364 - **bump**: eliminate similar patterns in code
365 - **bump**: use any to replace 'or' chain
366 - remove unnecessary bool() and remove Any type from TypedDict get
367 - **bump**: improve readability and still bypass mypy check
368 - **commands**: remove unused args, type version command args
369 - **commit**: type commit args
370 - **check**: type CheckArgs arguments
371 - **check**: remove unused argument
372 - **changelog**: type untyped arguments
373 - **bump**: TypedDict for bump argument
374 - make methods protected, better type
375 - **conventional_commits**: remove unnecessary checks
376 - fix mypy output and better type
377 - **BaseCommitizen**: remove unused process_commit
378 - remove `TypeError` handling since `Python >=3.9` is required
379 - add comment clarifying `no_raise` parsing to `list[int]`
380 - **cli.py**: add type hints
381 - **mypy**: remove `unused-ignore`
382 - **changelog**: better typing, yield
383 - **cli**: early return and improve test coverage
384 - **git**: extract _create_commit_cmd_string
385 - misc cleanup
386 - **bump**: clean up
387 - **bump**: add type for out, replace function with re escape
388 - **BaseConfig**: use setter
389 - **changelog**: minor cleanup
390 - **git**: refactor get_tag_names
391 - **EOLType**: add eol enum back and reorganize methods
392 - **git**: code cleanup and better test coverage
393 - **commit**: simplify call
394 - **version_scheme**: cleanup
395 - improve readability and fix typos
396
397 ### Perf
398
399 - **bump**: avoid unnecessary list construction and rename variable to avoid confusion
400 - **tags**: use set
401
402 ## v4.8.2 (2025-05-22)
403
404 ### Refactor
405
406 - **check**: simplify code
407 - **check**: remove unnecessary variable
408
409 ## v4.8.1 (2025-05-22)
410
411 ### Refactor
412
413 - **customize**: improve code readability
414
415 ## v4.8.0 (2025-05-20)
416
417 ### Feat
418
419 - **cli**: add --tag-format argument to changelog command
420
421 ## v4.7.2 (2025-05-18)
422
423 ### Refactor
424
425 - **default**: capitalize all constants and remove unnecessary variable
426
427 ## v4.7.1 (2025-05-16)
428
429 ### Fix
430
431 - **bump**: don't fail if an invalid version tag is present (fix #1410) (#1418)
432
433 ## v4.7.0 (2025-05-10)
434
435 ### Feat
436
437 - **providers**: add support for `Cargo.lock`
438
439 ### Refactor
440
441 - **tests**: increase verbosity of variables
442
443 ## v4.6.3 (2025-05-07)
444
445 ### Fix
446
447 - **changelog.py**: cross-platform path handling using os.path.join and modify the path linter and test parameter
448 - **changelog.py**: modify the CHANGELOG.md generated by cz bump --changelog to the right place
449
450 ## v4.6.2 (2025-05-05)
451
452 ### Fix
453
454 - **docs**: fix url link and table formatting in the customization docs (#1399)
455
456 ## v4.6.1 (2025-05-05)
457
458 ### Fix
459
460 - **commit**: use os.unlink to remove temp file
461
462 ## v4.6.0 (2025-04-13)
463
464 ### Feat
465
466 - **changelog**: expose commit parents' digests when processing commits
467 - **git**: add parents' digests in commit information
468
469 ## v4.5.1 (2025-04-09)
470
471 ### Fix
472
473 - print which tag is invalid
474
475 ## v4.5.0 (2025-04-04)
476
477 ### Feat
478
479 - **init**: set uv to default value if both pyproject.toml and uv.lock present
480
481 ### Fix
482
483 - **commands/init**: add missing uv provider to "cz init"
484
485 ## v4.4.1 (2025-03-02)
486
487 ### Fix
488
489 - **tags**: fixes ImportError on Python >=3.11 (#1363) (#1364)
490
491 ## v4.4.0 (2025-03-02)
492
493 ### Feat
494
495 - **tags**: adds `legacy_tag_formats` and `ignored_tag_formats` settings
496
497 ### Refactor
498
499 - **get_tag_regexes**: dedup tag regexes definition
500
501 ## v4.3.0 (2025-02-28)
502
503 ### Feat
504
505 - **providers**: add uv_provider
506
507 ## v4.2.2 (2025-02-18)
508
509 ### Fix
510
511 - **bump**: manual version bump if prerelease offset is configured
512
513 ## v4.2.1 (2025-02-08)
514
515 ### Fix
516
517 - **bump**: add debugging to bump
518
519 ## v4.2.0 (2025-02-07)
520
521 ### Feat
522
523 - draft of the --empty parameter
524
525 ### Refactor
526
527 - **bump**: rename --empty as --allow-no-commit
528
529 ## v4.1.1 (2025-01-26)
530
531 ### Fix
532
533 - **get-next-bump**: add a test case
534 - **get-next-bump**: fix to permit usage of --get-next options even when update_changelog_on_bump is set to true
535
536 ## v4.1.0 (2024-12-06)
537
538 ### Feat
539
540 - **commit**: allow '-- --allow-empty' to create empty commits
541
542 ## v4.0.0 (2024-11-26)
543
544 ## v3.31.0 (2024-11-16)
545
546 ### Feat
547
548 - **commitizen**: document '--' double dash in '--help'
549
550 ### Fix
551
552 - **commit**: avoid warnings with 'always_signoff' configuration
553 - **commit**: resolve 'always_signoff' configuration and '-s' CLI issues
554
555 ## v3.30.1 (2024-11-10)
556
557 ### Refactor
558
559 - **cli**: replace magic number 0 with ExitCode.EXPECTED_EXIT
560 - **defaults**: disallow style as None
561 - **cz_customize**: return empty string for info, example, schema and schema_pattern if not provided
562
563 ## v3.30.0 (2024-10-23)
564
565 ### Feat
566
567 - **commands/commit**: add force-edit functionality after answering questions
568
569 ### Refactor
570
571 - remove redundant return None
572
573 ## v3.29.1 (2024-09-26)
574
575 ### Fix
576
577 - **changelog**: Factorized TAG_FORMAT_REGEXES
578 - **changelog**: Handle tag format without version pattern
579 - **changelog**: handle custom tag_format in changelog generation
580
581 ### Refactor
582
583 - Use format strings
584
585 ## v3.29.0 (2024-08-11)
586
587 ### Feat
588
589 - **bump**: add functionality to write the next version to stdout
590
591 ## v3.28.0 (2024-07-17)
592
593 ### Feat
594
595 - add argument to limit length of commit message in checks
596
597 ## v3.27.0 (2024-05-22)
598
599 ### Feat
600
601 - **config_files**: add support for "cz.toml" config file
602
603 ## v3.26.2 (2024-05-22)
604
605 ### Fix
606
607 - **base.py**: add encoding when open changlelog_file
608
609 ## v3.26.1 (2024-05-22)
610
611 ### Fix
612
613 - **cli/commands**: add description for subcommands
614
615 ### Refactor
616
617 - **KNOWN_SCHEMES**: replace set comprehension for list comprehension
618 - **tests/commands**: move "other" tests for the correspondent file
619
620 ## v3.26.0 (2024-05-18)
621
622 ### Feat
623
624 - **ci/cd**: automates the generation of CLI screenshots
625
626 ## v3.25.1 (2024-05-15)
627
628 ### Refactor
629
630 - strip possessive from note about ci option
631
632 ## v3.25.0 (2024-04-30)
633
634 ### Feat
635
636 - add an argument to limit the length of commit message
637
638 ### Fix
639
640 - strip the commit message for calculating length
641 - resolve test error by removing defaults
642
643 ### Refactor
644
645 - **commands/commit**: replace comparison with chained comparison
646 - check the length in Commit instead of Commitizen
647
648 ## v3.24.0 (2024-04-18)
649
650 ### Feat
651
652 - **schemes**: adds support for SemVer 2.0 (dot in pre-releases) (fix #1025) (#1072)
653
654 ## v3.23.0 (2024-04-18)
655
656 ### Feat
657
658 - **bump**: `version_files` now support glob patterns (fix #1067) (#1070)
659
660 ## v3.22.0 (2024-04-11)
661
662 ### Feat
663
664 - **cli**: add config option to specify config file path
665
666 ## v3.21.3 (2024-03-30)
667
668 ### Refactor
669
670 - **defaults**: move cz_conventional_commit defaults out of defaults.py
671
672 ## v3.21.2 (2024-03-30)
673
674 ### Fix
675
676 - **commitizen/git.py,-tests/test_git.py**: Resolve tempfile path spaces issue in git commit function
677
678 ## v3.21.1 (2024-03-30)
679
680 ### Fix
681
682 - **command-init**: "cz init" should list existing tag in reverse order
683
684 ## v3.21.0 (2024-03-30)
685
686 ### Feat
687
688 - **commit**: add retry_after_failure config option and --no-retry flag
689
690 ### Refactor
691
692 - **utils**: convert git project root to posix path for backup file name
693 - **commit**: use Optional[str] instead of str | None
694 - **commit**: remove unused tempfile import
695 - **git-hooks**: make git hooks use get_backup_file_path
696 - **utils**: move backup path creation to utils
697
698 ## v3.20.0 (2024-03-19)
699
700 ### Feat
701
702 - **changelog**: expose commits `sha1`, `author` and `author_email` in changelog tree (fix #987) (#1013)
703
704 ## v3.19.0 (2024-03-19)
705
706 ### Feat
707
708 - **changelog**: adds a `changelog_release_hook` called for each release in the changelog (#1018)
709
710 ## v3.18.4 (2024-03-14)
711
712 ### Fix
713
714 - **changelog**: include latest change when dry run and incremental
715
716 ## v3.18.3 (2024-03-11)
717
718 ### Fix
719
720 - **warnings**: all warnings should go to `stdout`
721
722 ## v3.18.2 (2024-03-11)
723
724 ### Fix
725
726 - **git**: force the default git locale on methods relying on parsing the output (#1012)
727
728 ## v3.18.1 (2024-03-11)
729
730 ### Fix
731
732 - **changelog**: changelog hook was not called on dry run
733
734 ## v3.18.0 (2024-03-07)
735
736 ### Feat
737
738 - **changelog**: `changelog_message_build_hook` can now generate multiple changelog entries from a single commit (#1003)
739
740 ## v3.17.2 (2024-03-07)
741
742 ### Fix
743
744 - **changelog**: ensure `changelog_message_builder_hook` can access and modify `change_type` (#1002)
745
746 ## v3.17.1 (2024-03-07)
747
748 ### Fix
749
750 - **bump**: pre and post bump hooks were failing when an increment was provided (fix #1004)
751
752 ## v3.17.0 (2024-03-06)
753
754 ### Feat
755
756 - **changelog**: `changelog_message_build_hook` can remove message by returning a falsy value
757
758 ## v3.16.0 (2024-02-26)
759
760 ### Feat
761
762 - **commands**: add bump --exact
763
764 ### Fix
765
766 - **bump**: change --exact-increment to --increment-mode
767 - **bump**: only get and validate commits if increment is not provided
768 - Improve type annotations
769
770 ## v3.15.0 (2024-02-17)
771
772 ### Feat
773
774 - **bump**: functionality to add build-metadata to version string
775
776 ## v3.14.1 (2024-02-04)
777
778 ### Fix
779
780 - **bump**: remove unused method
781 - **scm**: only search tags that are reachable by the current commit
782
783 ## v3.14.0 (2024-02-01)
784
785 ### Feat
786
787 - properly bump versions between prereleases (#799)
788
789 ## v3.13.0 (2023-12-03)
790
791 ### Feat
792
793 - **commands-bump**: automatically create annotated tag if message is given
794 - add tag message argument to cli
795 - **git**: add get tag message function
796 - add custom message to annotated git tag
797
798 ### Fix
799
800 - **test-bump-command**: typo in --annotated-tag option inside test
801 - **commitizen-git**: add quotes for tag message
802
803 ### Refactor
804
805 - **commands-bump**: make changelog variable in 1 line
806 - **commands-bump**: cast str to bool
807
808 ## v3.12.0 (2023-10-18)
809
810 ### Feat
811
812 - **formats**: expose some new customizable changelog formats on the `commitizen.changelog_format` endpoint (Textile, AsciiDoc and RestructuredText)
813 - **template**: add `changelog --export-template` command
814 - **template**: allow to override the template from cli, configuration and plugins
815 - **cli.py**: Added support for extra git CLI args after -- separator for `cz commit` command
816
817 ### Fix
818
819 - **filename**: ensure `file_name` can be passed to `changelog` from `bump` command
820
821 ### Refactor
822
823 - **git.py**: Removed 'extra_args' from git.commit
824 - **extra_args**: Fixed broken code due to rebase and finalized tests
825 - Code Review - round 1 changes
826 - **Commit**: Added deprecation on git signoff mechanic
827
828 ## v3.10.1 (2023-10-14)
829
830 ### Fix
831
832 - **bump**: add bump support with custom type + scope + exclamation mark
833 - **bump**: version bumping
834
835 ## v3.10.0 (2023-09-25)
836
837 ### Feat
838
839 - Drop support for Python 3.7 (#858)
840
841 ## v3.9.1 (2023-09-22)
842
843 ### Fix
844
845 - **conf**: handle parse error when init (#856)
846
847 ## v3.9.0 (2023-09-15)
848
849 ### Feat
850
851 - **commands**: add arg of cz commit to execute git add
852
853 ### Fix
854
855 - **tests**: modify the arg of commit from add to all
856 - **commitizen**: Modify the function of the arg a of commit from git add all to git add update
857
858 ### Refactor
859
860 - **commitizen**: add return type hint of git add function
861
862 ## v3.8.2 (2023-09-09)
863
864 ### Refactor
865
866 - **provider**: split provider code and related tests into individual files for maintainability (#830)
867
868 ## v3.8.1 (2023-09-08)
869
870 ### Fix
871
872 - add sponsors to README
873
874 ## v3.8.0 (2023-09-05)
875
876 ### Feat
877
878 - **defaults.py**: add always_signoff config option for commits
879
880 ## v3.7.1 (2023-09-04)
881
882 ### Fix
883
884 - empty error on bump failure
885
886 ## v3.7.0 (2023-08-26)
887
888 ### Feat
889
890 - **provider**: add npm2 provider to update package.json, package-lock.json, and npm-shrinkwrap.json
891
892 ### Fix
893
894 - **provider**: fix npm version provider to update package-lock.json and npm-shrinkwrap.json if they exist
895 - **provider**: fix npm provider to update package-lock.json and npm-shrinkwrap.json if they exist
896 - **test**: pass correct type to get_package_version tests
897 - **tests**: completed test coverage for npm2
898
899 ## v3.6.0 (2023-08-01)
900
901 ### Feat
902
903 - **changelog.py**: add encoding to get_metadata
904 - **unicode**: add unicode support
905
906 ### Fix
907
908 - add missing `encoding` parameter
909 - **out.py**: `TextIOWrapper.reconfigure` typing
910 - correct type hinting
911 - use base config for encoding
912
913 ### Refactor
914
915 - **defaults.py**: use variables in `DEFAULT_SETTINGS`
916
917 ## v3.5.4 (2023-07-29)
918
919 ### Refactor
920
921 - replace SemVer type literals by respective constants
922
923 ## v3.5.3 (2023-07-15)
924
925 ### Fix
926
927 - Treat $version the same as unset tag_format in ScmProvider
928
929 ### Refactor
930
931 - Make tag_format properly default to $version
932
933 ## v3.5.2 (2023-06-25)
934
935 ### Fix
936
937 - **typing**: no_raise is declared as optional
938
939 ## v3.5.1 (2023-06-24)
940
941 ### Fix
942
943 - only use version tags when generating a changelog
944
945 ## v3.5.0 (2023-06-23)
946
947 ### Feat
948
949 - Add option in bump command to redirect git output to stderr
950
951 ## v3.4.1 (2023-06-23)
952
953 ### Fix
954
955 - **veresion_schemes**: import missing Self for python 3.11
956
957 ## v3.4.0 (2023-06-20)
958
959 ### Feat
960
961 - **version-schemes**: expose `version_schemes` as a `commitizen.scheme` endpoint.
962
963 ## v3.3.0 (2023-06-13)
964
965 ### Feat
966
967 - add support for cargo workspaces
968
969 ## v3.2.2 (2023-05-11)
970
971 ### Fix
972
973 - **init**: fix is_pre_commit_installed method
974
975 ## v3.2.1 (2023-05-03)
976
977 ### Fix
978
979 - add support for importlib_metadata 6
980
981 ## v3.2.0 (2023-05-01)
982
983 ### Feat
984
985 - **hooks**: add prepare-commit-msg and post-commit hooks
986 - **commit**: add --write-message-to-file option
987
988 ### Fix
989
990 - **bump**: better match for change_type when finding increment
991 - **changelog**: breaking change on additional types for conventional commits
992 - **bump**: breaking changes on additional types for conventional commits
993 - improve errors message when empty .cz.json found
994 - **init**: poetry detection
995 - bump decli which is type hinted
996
997 ### Refactor
998
999 - **commit**: change type of write_message_to_file to path
1000
1001 ## v3.1.1 (2023-04-28)
1002
1003 ### Fix
1004
1005 - bump changelog for prerelease without commits
1006
1007 ## v3.1.0 (2023-04-25)
1008
1009 ### Feat
1010
1011 - make `major_version_zero` customizable by third parties
1012
1013 ## v3.0.1 (2023-04-23)
1014
1015 ### Fix
1016
1017 - typo in hook
1018
1019 ### Refactor
1020
1021 - set default_install_hook_types
1022
1023 ## v3.0.0 (2023-04-23)
1024
1025 ### BREAKING CHANGE
1026
1027 - Plugins are now exposed as `commitizen.plugin` entrypoints
1028 - Python 3.6 is not officially supported anymore. Please migrate from 3.6 to 3.7 or greater.
1029
1030 ### Feat
1031
1032 - **init**: add new settings
1033 - add semver support through version provider new api (#686)
1034 - **changelog**: add merge_prereleases flag
1035 - **providers**: add a `scm` version provider
1036 - **providers**: add support for some JSON-based version providers (NPM, Composer)
1037 - **providers**: add support for some TOML-based versions (PEP621, Poetry, Cargo)
1038 - **providers**: add a `commitizen.provider` endpoint for alternative versions providers
1039 - **plugins**: Switch to an importlib.metadata.EntryPoint-based plugin loading
1040
1041 ### Fix
1042
1043 - **init**: welcome message
1044 - small corrections and clean up
1045 - major version zero message
1046 - update dependencies
1047 - **commands/changelog**: use topological order for commit ordering
1048 - **excepthook**: ensure traceback can only be a `TracebackType` or `None`
1049
1050 ## v2.42.1 (2023-02-25)
1051
1052 ### Fix
1053
1054 - **bump**: fixed environment variables in bump hooks
1055
1056 ## v2.42.0 (2023-02-11)
1057
1058 ### Feat
1059
1060 - **bump**: support prereleases with start offset
1061
1062 ## v2.41.0 (2023-02-08)
1063
1064 ### Feat
1065
1066 - **bump**: added support for running arbitrary hooks during bump
1067
1068 ## v2.40.0 (2023-01-23)
1069
1070 ### Feat
1071
1072 - **yaml_config**: add explicit_start for yaml output
1073
1074 ## v2.39.1 (2022-12-31)
1075
1076 ### Fix
1077
1078 - filter git diff from commit message
1079
1080 ## v2.39.0 (2022-12-31)
1081
1082 ### Feat
1083
1084 - **init**: allow user to select which type of pre commit hooks to install
1085
1086 ### Fix
1087
1088 - **init**: space between `--hook-type` options
1089 - **init**: report error when hook installation failed
1090
1091 ### Refactor
1092
1093 - **init**: `_install_pre_commit_hook` raise error when failed
1094
1095 ## v2.38.0 (2022-12-12)
1096
1097 ### Feat
1098
1099 - **poetry**: relax packaging version
1100
1101 ## v2.37.1 (2022-11-30)
1102
1103 ### Fix
1104
1105 - **changelog**: allow rev range lookups without a tag format
1106
1107 ## v2.37.0 (2022-10-28)
1108
1109 ### Feat
1110
1111 - add major-version-zero option to support initial package development
1112
1113 ## v2.36.0 (2022-10-28)
1114
1115 ### Feat
1116
1117 - **scripts**: remove `venv/bin/`
1118 - **scripts**: add error message to `test`
1119
1120 ### Fix
1121
1122 - **scripts/test**: MinGW64 workaround
1123 - **scripts/test**: use double-quotes
1124 - **scripts**: pydocstyle and cz
1125 - **bump.py**: use `sys.stdin.isatty()`
1126 - **scripts**: use cross-platform POSIX
1127 - **scripts**: use portable shebang
1128 - **pythonpackage.yml**: undo indent reformatting
1129 - **pythonpackage.yml**: use `bash`
1130
1131 ## v2.35.0 (2022-09-23)
1132
1133 ### Feat
1134
1135 - allow fixup! and squash! in commit messages
1136
1137 ## v2.34.0 (2022-09-19)
1138
1139 ### Feat
1140
1141 - **bump**: support optional manual version argument
1142
1143 ### Fix
1144
1145 - **bump**: fix type hint
1146 - **bump**: fix typos
1147
1148 ## v2.33.1 (2022-09-16)
1149
1150 ### Fix
1151
1152 - **bump.py**: `CHANGELOG.md` gets git added and committed correctly
1153
1154 ## v2.33.0 (2022-09-15)
1155
1156 ### Feat
1157
1158 - add functionality for dev-releases
1159
1160 ## v2.32.7 (2022-09-14)
1161
1162 ### Fix
1163
1164 - **README.md**: fix pre-commit install command
1165
1166 ## v2.32.6 (2022-09-14)
1167
1168 ### Fix
1169
1170 - **bump**: log git commit stderr and stdout during bump
1171
1172 ## v2.32.5 (2022-09-10)
1173
1174 ### Fix
1175
1176 - **command_changelog**: Fixed issue #561 cz bump could not find the latest version tag with custom tag_format
1177
1178 ## v2.32.4 (2022-09-08)
1179
1180 ### Refactor
1181
1182 - **bump**: Remove a redundant join call
1183
1184 ## v2.32.3 (2022-09-07)
1185
1186 ### Fix
1187
1188 - **bump**: Search for version number line by line
1189
1190 ## v2.32.2 (2022-08-22)
1191
1192 ### Fix
1193
1194 - **bump**: Support regexes containing colons
1195
1196 ## v2.32.1 (2022-08-21)
1197
1198 ### Fix
1199
1200 - **git**: Improves error checking in get_tags
1201 - **git**: improves git error checking in get_commits
1202
1203 ### Refactor
1204
1205 - **git**: test the git log parser behaves properly when the repository has no commits
1206 - **changelog**: fixes logic issue made evident by latest fix(git) commit
1207
1208 ## v2.32.0 (2022-08-21)
1209
1210 ### Feat
1211
1212 - **pre-commit**: Add commitizen-branch hook
1213
1214 ## v2.31.0 (2022-08-14)
1215
1216 ### Feat
1217
1218 - new file
1219
1220 ### Fix
1221
1222 - **pyproject.toml**: remove test added configurations
1223 - **changelog**: use defaults.change_type_order in conventional commit
1224 - capitalize types in default change_type_order
1225
1226 ## v2.30.0 (2022-08-14)
1227
1228 ### Feat
1229
1230 - Determine newline to write with Git
1231
1232 ## v2.29.6 (2022-08-13)
1233
1234 ### Fix
1235
1236 - **cmd**: improve character encoding detection for sub-commands
1237
1238 ## v2.29.5 (2022-08-07)
1239
1240 ### Fix
1241
1242 - **git**: use "git tag -v" return_code to check whether a tag is signed
1243
1244 ## v2.29.4 (2022-08-05)
1245
1246 ### Refactor
1247
1248 - **tool**: use charset_normalizer instead of chardet
1249
1250 ## v2.29.3 (2022-08-02)
1251
1252 ### Refactor
1253
1254 - **changelog**: removes unused code. duplicates are found in changelog_parser
1255
1256 ## v2.29.2 (2022-07-27)
1257
1258 ### Fix
1259
1260 - **bump**: send changelog to stdout when `dry-run` is paired with `changelog-to-stdout`
1261
1262 ## v2.29.1 (2022-07-26)
1263
1264 ### Fix
1265
1266 - **Check**: process empty commit message
1267 - **ConventionalCommitsCz**: cz's schema validates the whole commit message now
1268
1269 ### Refactor
1270
1271 - **Check**: remove the extra preprocessing of commit message file
1272
1273 ## v2.29.0 (2022-07-22)
1274
1275 ### Feat
1276
1277 - use chardet to get correct encoding
1278 - **bump**: add signed tag support for bump command
1279
1280 ### Fix
1281
1282 - avoid that pytest overrides existing gpg config
1283 - **test**: set git to work with gpg
1284
1285 ## v2.28.1 (2022-07-22)
1286
1287 ### Fix
1288
1289 - **changelog**: skip non-compliant commit subjects when building changelog
1290
1291 ## v2.28.0 (2022-07-03)
1292
1293 ### Feat
1294
1295 - **bump**: make increment option case insensitive
1296
1297 ## v2.27.1 (2022-05-22)
1298
1299 ### Fix
1300
1301 - **pre-commit**: Use new --allow-abort option
1302 - **pre-commit**: Confine hook to commit-msg stage
1303 - **pre-commit**: Set min pre-commit to v1.4.3
1304 - **pre-commit**: Don't require serial execution
1305
1306 ## v2.27.0 (2022-05-16)
1307
1308 ### Feat
1309
1310 - **bump**: let it respect pre-commit reformats when bumping
1311
1312 ## v2.26.0 (2022-05-14)
1313
1314 ### Feat
1315
1316 - **check**: Add --allow-abort option
1317
1318 ## v2.25.0 (2022-05-10)
1319
1320 ### Feat
1321
1322 - **changelog**: Improve whitespace in changelog
1323
1324 ### Refactor
1325
1326 - **changelog**: Simplify incremental_build
1327
1328 ## v2.24.0 (2022-04-15)
1329
1330 ### Feat
1331
1332 - add --no-raise to avoid raising error codes
1333
1334 ### Fix
1335
1336 - change error code for NoneIncrementExit
1337
1338 ## v2.23.0 (2022-03-29)
1339
1340 ### Feat
1341
1342 - **customize.py**: adding support for commit_parser, changelog_pattern, change_type_map
1343
1344 ## v2.22.0 (2022-03-29)
1345
1346 ### Feat
1347
1348 - **changelog**: add support for single version and version range
1349
1350 ### Refactor
1351
1352 - speed up testing and wait for tags
1353 - **git**: use date as a function in GitTag to easily patch
1354
1355 ## v2.21.2 (2022-02-22)
1356
1357 ### Fix
1358
1359 - remove type ignore
1360
1361 ## v2.21.1 (2022-02-22)
1362
1363 ### Refactor
1364
1365 - Switch to issue forms
1366 - Switch to issue forms
1367 - Switch to issue forms
1368
1369 ## v2.21.0 (2022-02-17)
1370
1371 ### Feat
1372
1373 - skip merge messages that start with Pull request
1374
1375 ## v2.20.5 (2022-02-07)
1376
1377 ### Fix
1378
1379 - Ignore packages that are not plugins
1380
1381 ### Refactor
1382
1383 - iter_modules only accepts str
1384
1385 ## v2.20.4 (2022-01-17)
1386
1387 ### Fix
1388
1389 - **bump**: raise non zero error code when there's no eligible commit to bump
1390
1391 ## v2.20.3 (2021-12-20)
1392
1393 ### Fix
1394
1395 - **check**: filter out comment message when checking
1396
1397 ## v2.20.2 (2021-12-14)
1398
1399 ### Fix
1400
1401 - **poetry**: add typing-exteions to dev
1402
1403 ## v2.20.1 (2021-12-14)
1404
1405 ### Fix
1406
1407 - import TypedDict from type_extensions for backward compatibility
1408
1409 ### Refactor
1410
1411 - **conventional_commits**: remove duplicate patterns and import from defaults
1412 - **config**: add CzSettings and Questions TypedDict
1413 - **defaults**: add Settings typeddict
1414 - **defaults**: move bump_map, bump_pattern, commit_parser from defaults to ConventionalCommitsCz
1415
1416 ## v2.20.0 (2021-10-06)
1417
1418 ### Feat
1419
1420 - **cli.py**: add shortcut for signoff command
1421 - add signoff parameter to commit command
1422
1423 ## v2.19.0 (2021-09-27)
1424
1425 ### Feat
1426
1427 - utility for showing system information
1428
1429 ## v2.18.2 (2021-09-27)
1430
1431 ### Fix
1432
1433 - **cli**: handle argparse different behavior after python 3.9
1434
1435 ## v2.18.1 (2021-09-12)
1436
1437 ### Fix
1438
1439 - **commit**: correct the stage checker before committing
1440
1441 ## v2.18.0 (2021-08-13)
1442
1443 ### Feat
1444
1445 - **prompt**: add keyboard shortcuts with config option
1446
1447 ### Refactor
1448
1449 - **shortcuts**: move check for shortcut config setting to apply to any list select
1450
1451 ## v2.17.13 (2021-07-14)
1452
1453 ## v2.17.12 (2021-07-06)
1454
1455 ### Fix
1456
1457 - **git.py**: ensure signed commits in changelog when git config log.showsignature=true
1458
1459 ## v2.17.11 (2021-06-24)
1460
1461 ### Fix
1462
1463 - correct indentation for json config for better readability
1464
1465 ## v2.17.10 (2021-06-22)
1466
1467 ### Fix
1468
1469 - add support for jinja2 v3
1470
1471 ## v2.17.9 (2021-06-11)
1472
1473 ### Fix
1474
1475 - **changelog**: generating changelog after a pre-release
1476
1477 ## v2.17.8 (2021-05-28)
1478
1479 ### Fix
1480
1481 - **changelog**: annotated tags not generating proper changelog
1482
1483 ## v2.17.7 (2021-05-26)
1484
1485 ### Fix
1486
1487 - **bump**: fix error due to bumping version file without eol through regex
1488 - **bump**: fix offset error due to partially match
1489
1490 ## v2.17.6 (2021-05-06)
1491
1492 ### Fix
1493
1494 - **cz/conventional_commits**: optionally expect '!' right before ':' in schema_pattern
1495
1496 ## v2.17.5 (2021-05-06)
1497
1498 ## v2.17.4 (2021-04-22)
1499
1500 ### Fix
1501
1502 - version update in a docker-compose.yaml file
1503
1504 ## v2.17.3 (2021-04-19)
1505
1506 ### Fix
1507
1508 - fix multiple versions bumps when version changes the string size
1509
1510 ## v2.17.2 (2021-04-10)
1511
1512 ### Fix
1513
1514 - **bump**: replace all occurrences that match regex
1515 - **wip**: add test for current breaking change
1516
1517 ## v2.17.1 (2021-04-08)
1518
1519 ### Fix
1520
1521 - **commands/init**: fix toml config format error
1522
1523 ## v2.17.0 (2021-04-02)
1524
1525 ### Feat
1526
1527 - Support versions on random positions
1528
1529 ## v2.16.0 (2021-03-08)
1530
1531 ### Feat
1532
1533 - **bump**: send incremental changelog to stdout and bump output to stderr
1534
1535 ## v2.15.3 (2021-02-26)
1536
1537 ### Fix
1538
1539 - add utf-8 encode when write toml file
1540
1541 ## v2.15.2 (2021-02-24)
1542
1543 ### Fix
1544
1545 - **git**: fix get_commits deliminator
1546
1547 ## v2.15.1 (2021-02-21)
1548
1549 ### Fix
1550
1551 - **config**: change read mode from `r` to `rb`
1552
1553 ## v2.15.0 (2021-02-21)
1554
1555 ### Feat
1556
1557 - **changelog**: add support for multiline BREAKING paragraph
1558
1559 ## v2.14.2 (2021-02-06)
1560
1561 ### Fix
1562
1563 - **git**: handle the empty commit and empty email cases
1564
1565 ## v2.14.1 (2021-02-02)
1566
1567 ### Fix
1568
1569 - remove yaml warnings when using '.cz.yaml'
1570
1571 ## v2.14.0 (2021-01-20)
1572
1573 ### Feat
1574
1575 - **#271**: enable creation of annotated tags when bumping
1576
1577 ## v2.13.0 (2021-01-01)
1578
1579 ### Feat
1580
1581 - **#319**: add optional change_type_order
1582
1583 ### Refactor
1584
1585 - raise an InvalidConfigurationError
1586 - **#323**: address PR feedback
1587 - move expected COMMITS_TREE to global
1588
1589 ## v2.12.1 (2020-12-30)
1590
1591 ### Fix
1592
1593 - read commit_msg_file with utf-8
1594
1595 ## v2.12.0 (2020-12-30)
1596
1597 ### Feat
1598
1599 - **deps**: Update and relax tomlkit version requirement
1600
1601 ## v2.11.1 (2020-12-16)
1602
1603 ### Fix
1604
1605 - **commit**: attach user info to backup for permission denied issue
1606
1607 ## v2.11.0 (2020-12-10)
1608
1609 ### Feat
1610
1611 - add yaml as a config option
1612 - **config**: add support for the new class YAMLConfig at the root of the confi internal package
1613 - **init**: add support for yaml config file at init
1614
1615 ### Fix
1616
1617 - **YAMLConfig**: add a TypeError exception to handle in _parse_settings method
1618
1619 ## v2.10.0 (2020-12-02)
1620
1621 ### Feat
1622
1623 - **commitizen/cli**: add the integration with argcomplete
1624
1625 ## v2.9.0 (2020-12-02)
1626
1627 ### Feat
1628
1629 - **Init**: add the json config support as an option at Init
1630 - **commitizen/config/json_config**: add json support for configuration
1631
1632 ### Fix
1633
1634 - **json_config**: fix the emtpy_config_content method
1635
1636 ## v2.8.2 (2020-11-21)
1637
1638 ### Fix
1639
1640 - support `!` in cz check command
1641
1642 ## v2.8.1 (2020-11-21)
1643
1644 ### Fix
1645
1646 - prevent prerelease from creating a bump when there are no commits
1647
1648 ## v2.8.0 (2020-11-15)
1649
1650 ### Feat
1651
1652 - allow files-only to set config version and create changelog
1653
1654 ## v2.7.0 (2020-11-14)
1655
1656 ### Feat
1657
1658 - **bump**: add flag `--local-version` that supports bumping only the local version instead of the public
1659
1660 ## v2.6.0 (2020-11-04)
1661
1662 ### Feat
1663
1664 - **commands/bump**: add config option to create changelog on bump
1665
1666 ## v2.5.0 (2020-11-04)
1667
1668 ### Feat
1669
1670 - **commands/changelog**: add config file options for start_rev and incremental
1671
1672 ## v2.4.2 (2020-10-26)
1673
1674 ### Fix
1675
1676 - **init.py**: mypy error (types)
1677 - **commands/bump**: Add NoneIncrementExit to fix git fatal error when creating existing tag
1678
1679 ### Refactor
1680
1681 - **commands/bump**: Remove comment and changed ... for pass
1682
1683 ## v2.4.1 (2020-10-04)
1684
1685 ### Fix
1686
1687 - **cz_customize**: make schema_pattern customiziable through config for cz_customize
1688
1689 ## v2.4.0 (2020-09-18)
1690
1691 ### Feat
1692
1693 - **cz_check**: cz check can read commit message from pipe
1694
1695 ## v2.3.1 (2020-09-07)
1696
1697 ### Fix
1698
1699 - conventional commit schema
1700
1701 ## v2.3.0 (2020-09-03)
1702
1703 ### Feat
1704
1705 - **cli**: rewrite cli instructions to be more succinct about what they require
1706
1707 ### Fix
1708
1709 - **cli**: add guideline for subject input
1710 - **cli**: wrap the word enter with brackets
1711
1712 ## v2.2.0 (2020-08-31)
1713
1714 ### Feat
1715
1716 - **cz_check**: cz check can read from a string input
1717
1718 ## v2.1.0 (2020-08-06)
1719
1720 ### Feat
1721
1722 - **cz_check**: Add rev to all displayed ill-formatted commits
1723 - **cz_check**: Update to show all ill-formatted commits
1724
1725 ### Refactor
1726
1727 - **cz_check**: Refactor _get_commits to return GitCommit instead of dict
1728
1729 ## v2.0.2 (2020-08-03)
1730
1731 ### Fix
1732
1733 - **git**: use double quotation mark in get_tags
1734
1735 ## v2.0.1 (2020-08-02)
1736
1737 ### Fix
1738
1739 - **commands/changelog**: add exception message when failing to find an incremental revision
1740 - **commands/bump**: display message variable properly
1741
1742 ## v2.0.0 (2020-07-26)
1743
1744 ### BREAKING CHANGE
1745
1746 - setup.cfg, .cz and .cz.cfg are no longer supported
1747 - Use "cz version" instead
1748 - "cz --debug" will no longer work
1749 #47
1750
1751 ### Feat
1752
1753 - **init**: enable setting up pre-commit hook through "cz init"
1754
1755 ### Fix
1756
1757 - add missing `pyyaml` dependency
1758 - **cli**: make command required for commitizen
1759
1760 ### Refactor
1761
1762 - **config**: drop "files" configure support. Please use "version_files" instead
1763 - **config**: remove ini configuration support
1764 - **cli**: remove "--version" argument
1765
1766 ## v1.25.0 (2020-07-26)
1767
1768 ### Feat
1769
1770 - **conventional_commits**: use and proper support for conventional commits v1.0.0
1771
1772 ## v1.24.0 (2020-07-26)
1773
1774 ### Feat
1775
1776 - add author and author_email to git commit
1777
1778 ## v1.23.4 (2020-07-26)
1779
1780 ### Refactor
1781
1782 - **changelog**: remove pkg_resources dependency
1783
1784 ## v1.23.3 (2020-07-25)
1785
1786 ### Fix
1787
1788 - **commands/bump**: use `return_code` in commands used by bump
1789 - **commands/commit**: use return_code to raise commit error, not stderr
1790
1791 ### Refactor
1792
1793 - **cmd**: add return code to Command
1794
1795 ## v1.23.2 (2020-07-25)
1796
1797 ### Fix
1798
1799 - **bump**: add changelog file into stage when running `cz bump --changelog`
1800
1801 ## v1.23.1 (2020-07-14)
1802
1803 ### Fix
1804
1805 - Raise NotAGitProjectError only in git related command
1806
1807 ## v1.23.0 (2020-06-14)
1808
1809 ### Feat
1810
1811 - **cli**: enable displaying all traceback for CommitizenException when --debug flag is used
1812
1813 ### Refactor
1814
1815 - **exception**: rename MissingConfigError as MissingCzCustomizeConfigError
1816 - **exception**: Rename CommitFailedError and TagFailedError with Bump prefix
1817 - **commands/init**: add test case and remove unaccessible code
1818 - **exception**: move output message related to exception into exception
1819 - **exception**: implement message handling mechanism for CommitizenException
1820 - **cli**: do not show traceback if the raised exception is CommitizenException
1821 - introduce DryRunExit, ExpectedExit, NoCommandFoundError, InvalidCommandArgumentError
1822 - use custom exception for error handling
1823 - **error_codes**: remove unused NO_COMMIT_MSG error code
1824
1825 ## v1.22.3 (2020-06-10)
1826
1827 ## v1.22.2 (2020-05-29)
1828
1829 ### Fix
1830
1831 - **changelog**: empty lines at the beginning of the CHANGELOG
1832
1833 ## v1.22.1 (2020-05-23)
1834
1835 ### Fix
1836
1837 - **templates**: remove trailing space in keep_a_changelog
1838
1839 ## v1.22.0 (2020-05-13)
1840
1841 ### Feat
1842
1843 - **changelog**: add support for `changelog_hook` when changelog finishes the generation
1844 - **changelog**: add support for `message_hook` method
1845 - **changelog**: add support for modifying the change_type in the title of the changelog
1846
1847 ### Fix
1848
1849 - **changelog**: rename `message_hook` -> `changelog_message_builder_hook`
1850
1851 ## v1.21.0 (2020-05-09)
1852
1853 ### Feat
1854
1855 - **commands/bump**: add "--check-consistency" optional
1856
1857 ## v1.20.0 (2020-05-06)
1858
1859 ### Feat
1860
1861 - **bump**: add optional --no-verify argument for bump command
1862
1863 ## v1.19.3 (2020-05-04)
1864
1865 ### Fix
1866
1867 - **docs**: change old url woile.github.io to commitizen-tools.github.io
1868 - **changelog**: generate today's date when using an unreleased_version
1869
1870 ## v1.19.2 (2020-05-03)
1871
1872 ### Fix
1873
1874 - **changelog**: sort the commits properly to their version
1875
1876 ## v1.19.1 (2020-05-03)
1877
1878 ### Fix
1879
1880 - **commands/check**: Show warning if no commit to check when running `cz check --rev-range`
1881
1882 ### Refactor
1883
1884 - **cli**: add explicit category for deprecation warnings
1885
1886 ## v1.19.0 (2020-05-02)
1887
1888 ### Feat
1889
1890 - **changelog**: add support for any commit rule system
1891 - **changelog**: add incremental flag
1892 - **commands/changelog**: make changelog_file an option in config
1893 - **commands/changelog**: exit when there is no commit exists
1894 - **commands/changelog**: add --start-rev argument to `cz changelog`
1895 - **changelog**: generate changelog based on git log
1896 - **commands/changelog**: generate changelog_tree from all past commits
1897 - **cz/conventinal_commits**: add changelog_map, changelog_pattern and implement process_commit
1898 - **cz/base**: add default process_commit for processing commit message
1899 - **changelog**: changelog tree generation from markdown
1900
1901 ### Fix
1902
1903 - **git**: missing dependency removed
1904 - **changelog**: check get_metadata for existing changelog file
1905 - **cz/conventional_commits**: fix schema_pattern break due to rebase
1906 - **changelog_template**: fix list format
1907 - **commitizen/cz**: set changelog_map, changelog_pattern to none as default
1908 - **commands/changelog**: remove --skip-merge argument
1909 - **cli**: add changelog arguments
1910
1911 ### Refactor
1912
1913 - **changelog**: use functions from changelog.py
1914 - **changelog**: rename category to change_type to fit 'keep a changelog'
1915 - **templates**: rename as "keep_a_changelog_template.j2"
1916 - **templates**: remove unneeded __init__ file
1917 - **cli**: reorder commands
1918 - **templates**: move changelog_template from cz to templates
1919 - **tests/utils**: move create_file_and_commit to tests/utils
1920 - **commands/changelog**: remove redundant if statement
1921 - **commands/changelog**: use jinja2 template instead of string concatenation to build changelog
1922
1923 ## v1.18.3 (2020-04-22)
1924
1925 ### Refactor
1926
1927 - **commands/init**: fix typo
1928
1929 ## v1.18.2 (2020-04-22)
1930
1931 ### Fix
1932
1933 - **git**: fix returned value for GitCommit.message when body is empty
1934
1935 ### Refactor
1936
1937 - **git**: replace GitCommit.message code with one-liner
1938
1939 ## v1.18.1 (2020-04-16)
1940
1941 ### Fix
1942
1943 - **config**: display ini config deprecation warning only when commitizen config is inside
1944
1945 ## v1.18.0 (2020-04-13)
1946
1947 ### Feat
1948
1949 - **bump**: support for ! as BREAKING change in commit message
1950
1951 ### Fix
1952
1953 - **cz/customize**: add error handling when customize detail is not set
1954
1955 ### Refactor
1956
1957 - **cz/customize**: remove unused mypy ignore
1958 - **mypy**: fix mypy check by checking version.pre exists
1959 - **cz**: add type annotation to registry
1960 - **commands/check**: fix type annotation
1961 - **config/base**: use Dict to replace dict in base_config
1962 - **cz/base**: fix config type used in base cz
1963 - **cz**: add type annotation for each function in cz
1964 - **config**: fix mypy warning for _conf
1965
1966 ## v1.17.1 (2020-03-24)
1967
1968 ### Fix
1969
1970 - **commands/check**: add help text for check command without argument
1971
1972 ### Refactor
1973
1974 - **cli**: fix typo
1975
1976 ## v1.17.0 (2020-03-15)
1977
1978 ### Feat
1979
1980 - **commands/check**: add --rev-range argument for checking commits within some range
1981
1982 ### Fix
1983
1984 - **bump**: fix bump find_increment error
1985
1986 ### Refactor
1987
1988 - **cz/connventional_commit**: use \S to check scope
1989 - **git**: remove unnecessary dot between git range
1990 - **tests/bump**: use parameterize to group similliar tests
1991
1992 ## v1.16.4 (2020-03-03)
1993
1994 ### Fix
1995
1996 - **commands/init**: fix clean up file when initialize commitizen config
1997
1998 ### Refactor
1999
2000 - **defaults**: split config files into long term support and deprecated ones
2001
2002 ## v1.16.3 (2020-02-20)
2003
2004 ### Fix
2005
2006 - replace README.rst with docs/README.md in config files
2007
2008 ### Refactor
2009
2010 - **docs**: remove README.rst and use docs/README.md
2011
2012 ## v1.16.2 (2020-02-01)
2013
2014 ### Fix
2015
2016 - **commands/check**: add bump into valid commit message of convention commit pattern
2017
2018 ## v1.16.1 (2020-02-01)
2019
2020 ### Fix
2021
2022 - **pre-commit**: set pre-commit check stage to commit-msg
2023
2024 ## v1.16.0 (2020-01-21)
2025
2026 ### Feat
2027
2028 - **git**: get_commits default from first_commit
2029
2030 ### Refactor
2031
2032 - **commands/bump**: rename parameter into bump_setting to distinguish bump_setting and argument
2033 - **git**: rename get tag function to distinguish return str and GitTag
2034 - **cmd**: reimplement how cmd is run
2035 - **git**: Use GitCommit, GitTag object to store commit and git information
2036 - **git**: make arguments other then start and end in get_commit keyword arguments
2037 - **git**: Change get_commits into returning commits instead of lines of messages
2038
2039 ## v1.15.1 (2020-01-20)
2040
2041 ### Fix
2042
2043 - **cli**: fix --version not functional
2044
2045 ### Refactor
2046
2047 - **tests/commands/bump**: use tmp_dir to replace self implemented tmp dir behavior
2048 - **test_bump_command**: rename camel case variables
2049 - **tests/commands/check**: use pytest fixture tmpdir replace self implemented contextmanager
2050 - **test/commands/other**: replace unit test style mock with mocker fixture
2051 - **tests/commands**: separate command unit tests into modules
2052 - **tests/commands**: make commands related tests a module
2053
2054 ## v1.15.0 (2020-01-20)
2055
2056 ### Feat
2057
2058 - **config**: look up configuration in git project root
2059 - **git**: add find_git_project_root
2060
2061 ### Fix
2062
2063 - **git**: remove breakline in the return value of find_git_project_root
2064
2065 ### Refactor
2066
2067 - **git**: make find_git_project_root return None if it's not a git project
2068 - **config/base_config**: make set_key not implemented
2069 - **error_codes**: move all the error_codes to a module
2070 - **config**: replace string type path with pathlib.Path
2071
2072 ## v1.14.2 (2020-01-14)
2073
2074 ### Fix
2075
2076 - **github_workflow/pythonpublish**: use peaceiris/actions-gh-pages@v2 to publish docs
2077
2078 ## v1.14.1 (2020-01-11)
2079
2080 ### Fix
2081
2082 - **cli**: fix the way default handled for name argument
2083 - **cli**: fix name cannot be overwritten through config in newly refactored config design
2084
2085 ## v1.14.0 (2020-01-06)
2086
2087 ### Feat
2088
2089 - **pre-commit-hooks**: add pre-commit hook
2090
2091 ### Refactor
2092
2093 - **pre-commit-hooks**: add metadata for the check hook
2094
2095 ## v1.13.1 (2019-12-31)
2096
2097 ### Fix
2098
2099 - **github_workflow/pythonpackage**: set git config for unit testing
2100 - **scripts/test**: ensure the script fails once the first failure happens
2101
2102 ## v1.13.0 (2019-12-30)
2103
2104 ### Feat
2105
2106 - add project version to command init
2107
2108 ## v1.12.0 (2019-12-30)
2109
2110 ### Feat
2111
2112 - new init command
2113
2114 ## v1.10.3 (2019-12-29)
2115
2116 ### Refactor
2117
2118 - **commands/bump**: use "version_files" internally
2119 - **config**: set "files" to alias of "version_files"
2120
2121 ## v1.10.2 (2019-12-27)
2122
2123 ### Fix
2124
2125 - **config**: handle empty config file
2126 - **config**: fix load global_conf even if it doesn't exist
2127 - **config/ini_config**: replace outdated _parse_ini_settings with _parse_settings
2128
2129 ### Refactor
2130
2131 - new config system where each config type has its own class
2132 - **config**: add type annotation to config property
2133 - **config**: fix wrongly type annotated functions
2134 - **config/ini_config**: move deprecation warning into class initialization
2135 - **config**: use add_path instead of directly assigning _path
2136 - **all**: replace all the _settings invoke with settings.update
2137 - **cz/customize**: remove unnecessary statement "raise NotImplementedError("Not Implemented yet")"
2138 - **config**: move default settings back to defaults
2139 - **config**: Make config a class and each type of config (e.g., toml, ini) a child class
2140
2141 ## v1.10.1 (2019-12-10)
2142
2143 ### Fix
2144
2145 - **cli**: overwrite "name" only when it's not given
2146 - **config**: fix typo
2147
2148 ## v1.10.0 (2019-11-28)
2149
2150 ### Feat
2151
2152 - support for different commitizens in `cz check`
2153 - **bump**: new argument --files-only
2154
2155 ## v1.9.2 (2019-11-23)
2156
2157 ### Fix
2158
2159 - **commands/check.py**: --commit-msg-file is now a required argument
2160
2161 ## v1.9.1 (2019-11-23)
2162
2163 ### Fix
2164
2165 - **cz/exceptions**: exception AnswerRequiredException not caught (#89)
2166
2167 ## v1.9.0 (2019-11-22)
2168
2169 ### Feat
2170
2171 - **Commands/check**: enforce the project to always use conventional commits
2172 - **config**: add deprecation warning for loading config from ini files
2173 - **cz/customize**: add jinja support to enhance template flexibility
2174 - **cz/filters**: add required_validator and multiple_line_breaker
2175 - **Commands/commit**: add ´--dry-run´ flag to the Commit command
2176 - **cz/cz_customize**: implement info to support info and info_path
2177 - **cz/cz_customize**: enable bump_pattern bump_map customization
2178 - **cz/cz_customize**: implement customizable cz
2179 - new 'git-cz' entrypoint
2180
2181 ### Fix
2182
2183 - commit dry-run doesn't require staging to be clean
2184 - **scripts**: add back the delete poetry prefix
2185 - correct typo to spell "convention"
2186 - removing folder in windows throwing a PermissionError
2187 - **test_cli**: testing the version command
2188
2189 ### Refactor
2190
2191 - **config**: remove has_pyproject which is no longer used
2192 - **cz/customize**: make jinja2 a custom requirement. if not installed use string.Template instead
2193 - **cz/utils**: rename filters as utils
2194 - **cli**: add back --version and remove subcommand required constraint
2195
2196 ## v1.8.0 (2019-11-12)
2197
2198 ### Feat
2199
2200 - **cz**: add a base exception for cz customization
2201 - **commands/commit**: abort commit if there is nothing to commit
2202 - **git**: add is_staging_clean to check if there is any file in git staging
2203
2204 ### Fix
2205
2206 - **commands/commit**: catch exception raised by customization cz
2207 - **cli**: handle the exception that command is not given
2208 - **cli**: enforce subcommand as required
2209
2210 ### Refactor
2211
2212 - **cz/conventional_commit**: make NoSubjectException inherit CzException and add error message
2213 - **command/version**: use out.write instead of out.line
2214 - **command**: make version a command instead of an argument
2215
2216 ## v1.7.0 (2019-11-08)
2217
2218 ### Feat
2219
2220 - **config**: update style instead of overwrite
2221 - **config**: parse style in config
2222 - **commit**: make style configurable for commit command
2223
2224 ### Fix
2225
2226 - **cz**: fix bug in BaseCommitizen.style
2227 - **cz**: fix merge_style usage error
2228 - **cz**: remove breakpoint
2229
2230 ### Refactor
2231
2232 - **cz**: change the color of default style
2233
2234 ## v1.6.0 (2019-11-05)
2235
2236 ### Feat
2237
2238 - **commit**: new retry argument to execute previous commit again
2239
2240 ## v1.5.1 (2019-06-04)
2241
2242 ### Fix
2243
2244 - #28 allows poetry add on py36 envs
2245
2246 ## v1.5.0 (2019-05-11)
2247
2248 ### Feat
2249
2250 - **bump**: it is now possible to specify a pattern in the files attr to replace the version
2251
2252 ## v1.4.0 (2019-04-26)
2253
2254 ### Feat
2255
2256 - added argument yes to bump in order to accept questions
2257
2258 ### Fix
2259
2260 - **bump**: handle commit and create tag failure
2261
2262 ## v1.3.0 (2019-04-24)
2263
2264 ### Feat
2265
2266 - **bump**: new commit message template
2267
2268 ## v1.2.1 (2019-04-21)
2269
2270 ### Fix
2271
2272 - **bump**: prefixes like docs, build, etc no longer generate a PATCH
2273
2274 ## v1.2.0 (2019-04-19)
2275
2276 ### Feat
2277
2278 - custom cz plugins now support bumping version
2279
2280 ## v1.1.1 (2019-04-18)
2281
2282 ### Fix
2283
2284 - **bump**: commit message now fits better with semver
2285 - conventional commit 'breaking change' in body instead of title
2286
2287 ### Refactor
2288
2289 - changed stdout statements
2290 - **schema**: command logic removed from commitizen base
2291 - **info**: command logic removed from commitizen base
2292 - **example**: command logic removed from commitizen base
2293 - **commit**: moved most of the commit logic to the commit command
2294
2295 ## v1.1.0 (2019-04-14)
2296
2297 ### Feat
2298
2299 - new working bump command
2300 - create version tag
2301 - update given files with new version
2302 - **config**: new set key, used to set version to cfg
2303 - support for pyproject.toml
2304 - first semantic version bump implementation
2305
2306 ### Fix
2307
2308 - removed all from commit
2309 - fix config file not working
2310
2311 ### Refactor
2312
2313 - added commands folder, better integration with decli
2314
2315 ## v1.0.0 (2019-03-01)
2316
2317 ### Refactor
2318
2319 - removed delegator, added decli and many tests
2320
2321 ## 1.0.0b2 (2019-01-18)
2322
2323 ## v1.0.0b1 (2019-01-17)
2324
2325 ### Feat
2326
2327 - py3 only, tests and conventional commits 1.0
2328
2329 ## v0.9.11 (2018-12-17)
2330
2331 ### Fix
2332
2333 - **config**: load config reads in order without failing if there is no commitizen section
2334
2335 ## v0.9.10 (2018-09-22)
2336
2337 ### Fix
2338
2339 - parse scope (this is my punishment for not having tests)
2340
2341 ## v0.9.9 (2018-09-22)
2342
2343 ### Fix
2344
2345 - parse scope empty
2346
2347 ## v0.9.8 (2018-09-22)
2348
2349 ### Fix
2350
2351 - **scope**: parse correctly again
2352
2353 ## v0.9.7 (2018-09-22)
2354
2355 ### Fix
2356
2357 - **scope**: parse correctly
2358
2359 ## v0.9.6 (2018-09-19)
2360
2361 ### Fix
2362
2363 - **manifest**: included missing files
2364
2365 ### Refactor
2366
2367 - **conventionalCommit**: moved filters to questions instead of message
2368
2369 ## v0.9.5 (2018-08-24)
2370
2371 ### Fix
2372
2373 - **config**: home path for python versions between 3.0 and 3.5
2374
2375 ## v0.9.4 (2018-08-02)
2376
2377 ### Feat
2378
2379 - **cli**: added version
2380
2381 ## v0.9.3 (2018-07-28)
2382
2383 ### Feat
2384
2385 - **committer**: conventional commit is a bit more intelligent now
2386
2387 ## v0.9.2 (2017-11-11)
2388
2389 ## v0.9.1 (2017-11-11)
2390
2391 ### Fix
2392
2393 - **setup.py**: future is now required for every python version
2394
2395 ## v0.9.0 (2017-11-08)
2396
2397 ### Refactor
2398
2399 - python 2 support
2400
2401 ## v0.8.6 (2017-11-08)
2402
2403 ## v0.8.5 (2017-11-08)
2404
2405 ## v0.8.4 (2017-11-08)
2406
2407 ## v0.8.3 (2017-11-08)
2408
2409 ## v0.8.2 (2017-10-08)
2410
2411 ## v0.8.1 (2017-10-08)
2412
2413 ## v0.8.0 (2017-10-08)
2414
2415 ### Feat
2416
2417 - **cz**: jira smart commits
2418
2419 ## v0.7.0 (2017-10-08)
2420
2421 ### Refactor
2422
2423 - **cli**: renamed all to ls command
2424 - **cz**: renamed angular cz to conventional changelog cz
2425
2426 ## v0.6.0 (2017-10-08)
2427
2428 ### Feat
2429
2430 - info command for angular
2431
2432 ## v0.5.0 (2017-10-07)
2433
2434 ## v0.4.0 (2017-10-07)
2435
2436 ## v0.3.0 (2017-10-07)
2437
2438 ## v0.2.0 (2017-10-07)
2439
2440 ### Feat
2441
2442 - **config**: new loads from ~/.cz and working project .cz .cz.cfg and setup.cfg
2443 - package discovery
2444
2445 ### Refactor
2446
2447 - **cz_angular**: improved messages