-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate changelog only from tags matching specific patterns #519
Comments
Here is basically what the changes would look like to remove the Would you like a PR? |
I would actually classify this as a bit of a bug, because I've already set my tag format in config: I would expect that I like the provided solution, could dev's merge this? |
@bhelgs a PR would be more than welcome. I'll be back with commitizen by July, sorry for the slow response answer. |
Closes commitizen-tools#519 CLI flag name: --tag-regex Heavily inspired by commitizen-tools#537, but extends it with a smart default value to exclude non-release tags. This was suggested in commitizen-tools#519 (comment)
Closes commitizen-tools#519 CLI flag name: --tag-regex Heavily inspired by commitizen-tools#537, but extends it with a smart default value to exclude non-release tags. This was suggested in commitizen-tools#519 (comment)
Closes commitizen-tools#519 CLI flag name: --tag-regex Heavily inspired by commitizen-tools#537, but extends it with a smart default value to exclude non-release tags. This was suggested in commitizen-tools#519 (comment)
Description
It seems right now the changelog generator is capturing all tags, rather than just the tags matching the version pattern.
It was mentioned in this
TODO
in the code.Without filtering tags:
v2.27.0-alpha
and then later come to find it in their changelog.otherwise they see
v2.26.0...v2.27.0-alpha...v2.27.0
rather thanv2.26.0...v2.27.0
Possible Solution
.*
regex.I believe this is an alternate solution to what was discussed on #364 and may be more extensible, for example:
tag_parser
if they want multiple changelogs with different parse criteriachangelog
module:v(?P<major>[0-9]+)\.(?P<minor>[0-9]+)\.(?P<patch>[0-9]+)(?P<pre>[0-9A-Za-z-]?
(v[0-9.]*|release-[0-9.]*)
(pattern matchesv1.2.0
orrelease-1.2.0
)Additional context
A user may have created a pre-release tag not knowing it would eventually show up in their changelog:
When they really wanted:
Additional context
Other examples of when a repository may have some custom tags:
feature_for_user_x_method_B_v1.0
feature_for_user_x_method_B_v1.1
The text was updated successfully, but these errors were encountered: