-
-
Notifications
You must be signed in to change notification settings - Fork 281
Duplicate Changelog Entries for Merged Branches #510
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
Hey, got the exact same issue here: I tried with |
@lovetheguitar Thanks for submitting this! I think I'll downgrade until a fix is submitted. @tanguy-a Thanks for the tip! |
Hi @lovetheguitar could you please provide concrete steps for us to reproduce this issue on our side? Thanks ! |
I think this is related to the fact that we process the body, even though the subject of a commit message may not match conventional commits. commitizen/commitizen/changelog.py Lines 116 to 127 in afa0d93
commitizen/commitizen/changelog.py Lines 129 to 140 in afa0d93
I think if the subject doesn't match, we should skip directly, no? I see this happening also now because github is adding the commit message in the body. |
…gelog This should fix duplicate entries in the changelog Closes #510
Uh oh!
There was an error while loading. Please reload this page.
Description
Somehow I end up with duplicate changelog entries after merging a MR.
E.g.
Steps to reproduce
Use gitlab and add some commits to a new branch.
Open a MR and merge it.
Run commitizen on the main branch and get a changelog with duplicated entries.
Current behavior
Duplicate Changelog Entries:
Desired behavior
No duplicates from merging a MR:
Screenshots
Problem appears to be that commitizen seems to parse the commit body also?!
Git log shows:
Environment
Commitizen Version: 2.24.0
Python Version: 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
Operating System: Windows
Thanks for the nice tool. 😃
The text was updated successfully, but these errors were encountered: