lvgig / tubular

Python package implementing transformers for pre processing steps for machine learning.
https://tubular.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
37 stars 14 forks source link

Automatically create a changelog from the git history #254

Open adamsardar opened 3 weeks ago

adamsardar commented 3 weeks ago

As a developer contributing to a project I want for my changelog to be automatically generated from my git commit messages So that I have all the benefits of keeping a changelog, but don't have the arduous faff of documenting what I've done separately from my git messages.

Currently I have to pre-empt a 'tag-to-deploy' stage with a PR. If this was dynamically compiled, then I wouldn't have to write anything extra. DRY and all.

Not all commits should go into the changelog; just posh ones that have been marked-up appropriately.

This would force us to improve our git commit message disciple on the project. Since the commit message is part of the commit hash, once a commit is on main we cannot alter it. Consider compiling the contribution to a new changelog that a PR would add so that it can be part of the review?

Suggestions

I think that git-cliff is what we want here. Customisable and fast - there's even a github action

adamsardar commented 2 weeks ago

Some stages to fulfilling this item:

I think that we should then let the above processes bed in before enabling a stage that automatically compiles a CHANGELOG for the project as part of CD. Creating a CHANGELOG would therefore still be a manual process, but could be assisted by git-cliff.

adamsardar commented 2 weeks ago

Note, implementing this ticket would prove an alternative to #165 in the long run