forked from noirbizarre/commitizen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit d570be1
Gerard SalvatellaGerard Salvatella
Gerard Salvatella
Gerard Salvatella
fix(changelog): allow rev range lookups without a tag format
The current default setting for `tag_format` is `None`. This is not a
problem for the `bump` command, since the `normalize_tag` function
defaults to `$version` when no `tag_format` is passed. However it is a
problem for the `changelog` command, which seems to explicitly demand a
`tag_format` in order to run a rev-range lookup. This creates issues
like commitizen-tools#622.
Either a sane default needs to be set for `tag_format` or the
restriction in `changelog` has to be uplifted. In this commit the latter
has been chosen. A test is also implemented to check that `changelog`
will always compute a rev range with the default tag format.
Fixes commitizen-tools#622 1 parent c07c147 commit d570be1
File tree
2 files changed
+32
-1
lines changed- commitizen/commands
- tests/commands
2 files changed
+32
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 | - | ||
140 | + | ||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
659 | 659 |
| |
660 | 660 |
| |
661 | 661 |
| |
662 | + | ||
663 | + | ||
664 | + | ||
665 | + | ||
666 | + | ||
667 | + | ||
668 | + | ||
669 | + | ||
670 | + | ||
671 | + | ||
672 | + | ||
673 | + | ||
674 | + | ||
675 | + | ||
676 | + | ||
677 | + | ||
678 | + | ||
679 | + | ||
680 | + | ||
681 | + | ||
682 | + | ||
683 | + | ||
684 | + | ||
685 | + | ||
686 | + | ||
687 | + | ||
688 | + | ||
689 | + | ||
690 | + | ||
691 | + | ||
692 | + | ||
662 | 693 |
| |
663 | 694 |
| |
664 | 695 |
| |
|
0 commit comments