A quick script to generate changelogs from git commit messages
A quick script that will generate a changelog for any git repository using conventional style commit messages.
auto-changelog is up on PyPI, so you can install it with:
pip install auto-changelog
Otherwise, you can install from source by cloning the repository from Github:
git clone https://github.com/Michael-F-Bryan/auto-changelog.git
And install the package:
python3 setup.py install
The package is callable using the python -m shortcut:
python3 -m auto_changelog
Or alternatively, you can use the provided command:
Of course, none of this is going to work if your commit messages are all over the place. The program currently only understands commit messages written following the Angular commit message conventions. This means that your commit messages should look something like this:
<type>(<scope>): <subject> <BLANK LINE> <body> <BLANK LINE> <footer>
The type and subject fields are mandatory, everything else is optional.
These are some of the valid types that Angular use:
The types field should be lower case, although the parser itself is case insensitive.
For more detailed information, please check out Angular’s contributing guide.