-
-
Notifications
You must be signed in to change notification settings - Fork 281
Bump with generating incremental changelog does not match version in previous generated changelog #297
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
Comments
Hi, I didn't find your attached file. Could you please send it again? Also, will this error happen when you use default cz? |
I am sorry, I expected different behaviour from attaching a file. It is in Steps to reproduce or here: cz_altair.zip Yes, now I just tried it again with default cz and bug repeats. I now realized that in the documentation of changelog it should be only one And I found out that in
parsed_message does not have |
Hi, can I ask if there is any update about this issue? I know you were busy with PyCon, so I am just asking if you tried it and had the same result or whatever. Thanks a lot! |
I took a quick look, but couldn't find if it was Regards! |
I have tests for my regexes in my project. As I said in my previous reply, I tried it even with default Then i just type these commands:
First command I have empty CHANGELOG.md
and fourth command just says:
And no tag was created. There is no change in CHANGELOG.md. As I mentioned how I expect it should behave:
Or it should behave different? I tried even different commands:
For these commands I removed option |
I reproduced your example and it just works on my side 🤔 git commit -m "feat: This is new commit"
cz bump
git commit -m "feat: This is new commit"
cz bump
what is the output of |
|
I just tried it on a different PC and it just works. Sorry for the inconveniences, I will try to clean my PC or python or whatever can be wrong. You can close this issue. |
Check your git configuration, you git version and commitizen version. In my case:
Feel free to open the issue again if needed. |
Description
When bumping version with generating incremental changelog which was already generated from previous bump, but with clean CHANGELOG.md file, it does not found version in changelog file and says that.
Ending with no added new bugfix with new version in changelog.
Steps to reproduce
My
pyproject.toml
:My customize template is here: cz_altair.zip
cz -n cz_altair bump
cz -n cz_altair bump
Current behavior
If I bump version with generating changelog (I have
update_changelog_on_bump = true
in my pyproject.toml file):cz -n cz_altair bump
and my CHANGELOG.md looks like that (it was generated by previous bump run with clean CHANGELOG.md file):
and now I make new commit, which increases patch version and do
cz -n cz_altair bump
again, it says that:I tried let pure version on the first line in the file like
0.3.2
without any .md symbols and it matches it but generate every commit from previous changelog + one new PATCH and insert it below:Desired behaviour
I expect that changelog will be generated and new version will be at the start of the file (before latest version in changelog), not at the end of it .
Environment
The text was updated successfully, but these errors were encountered: