Replies: 4 comments 1 reply
-
That's strange, which version are you running? |
Beta Was this translation helpful? Give feedback.
-
I did some further investigations. I wonder if this is causes by the difference between complete new changelog and incremental. However, I think it is desirable to fix that to allow to maintain a headline in the template without running into the trouble this headline to be duplicated during incremental changelog updates. |
Beta Was this translation helpful? Give feedback.
-
I think I am right :-) To overcome I guess an easy improvement would be to provide the changleog generation mode as additional variable. This would allow to control in the jinja template if an headline is generated or not. For incremental changlogs then the headerlines (or footer lines if desired) would not be generated. Another option: |
Beta Was this translation helpful? Give feedback.
-
So, tried it. One additional line (inserted between lines 247 and 248 in /commitizen/commands/changelog.py
... and following change in the template
does the job. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set-up commitizen as my standard toolchain for commiting and publishing. I like it pretty much as it is a handy all-in solution. However, I have some trouble setting ub the changelog generation. I encounter the problem, that the header line is duplicated. Does anybody experience this issue and knows how to resolve ?
Another problem is that generated changelog runs into an error with the trailing-whitespace check. However, this can be overcome with retry option even this is still somewhat weird.
Beta Was this translation helpful? Give feedback.
All reactions