A changelog generator using simply structured git commit messages.
Project description
whathappened
A changelog generator using simply structured git commit messages
Inspired by
Install and Run
Installation is as simple as it gets:
$ pip install whathappened
To generate a changelog, run:
$ whathappened
Make sure to activate any virtual environment that you might be using first.
Some options are available:
$ whathappened --help
Usage: whathappened [OPTIONS] [GIT_LOG_ARGS]...
Handle command line arguments. Extra arguments are passed to 'git log'.
Options:
--overriding-version TEXT Specify a version number to use [format: x.y.z]
-o, --output PATH The changelog destination [default: stdout]
-e, --emoji Include emoji in headings if present
-p, --prefix TEXT Version prefix, often 'version' or 'v' [default: '']
--version Show the version and exit.
--help Show this message and exit.
To limit the range of commits, add a revision range
argument.
To create a changelog of commits that are yet to be pushed:
$ whathappened origin..HEAD
To create a changelog of commits between (branch: main) and (tag: v1.0.0) and write the output to file:
$ whathappened -o CHANGELOG.md main..v1.0.0
Package Changelog
Created by Whathappened itself - very meta.
For the complete changelog, please see CHANGELOG.md.
Whathappened Commit Message Format
For a full description of the message format, see Commit-It-Simple.
Whathappened expects git commit messages in the format outlined below:
[optional breaking ]<type>[ optional (<scope>)]: <description>
[optional body]
<type>
is recommended to be one of:
fix
feat
build
ci
docs
style
refactor
perf
test
Variations on these types like feat, feature, features
, or doc, docs
are seamlessly grouped together.
The <scope>
is recommended to be a module, file, or folder name as appropriate.
More examples can be viewed on whathappened's own commits.
For a nice summary of type
s and what they mean, please see Understanding Semantic Commit Messages Using Git and Angular.
Emoji
Adding the --emoji
flag will add emoji after each heading in the changelog. Below is the list of emoji that are used:
- Docs 📝
- Features ✨
- Fixes 🐛
- Performance ⚡️
- Refactorings ♻️
- Other 🃏
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file whathappened-1.0.0.tar.gz
.
File metadata
- Download URL: whathappened-1.0.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da42cb90c54d5c0d0459bd1f381a6f2b56d1860193f3983b9e0003d9d95497e4 |
|
MD5 | 8fb7fc61afe58c10f963d213edffda5e |
|
BLAKE2b-256 | 9beee2a1250bba18438a8973203c938ca99474259f4beab4f43d646256818dbb |
File details
Details for the file whathappened-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: whathappened-1.0.0-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88203cd5ffcb7c843bb3ec8527224cf80cd42f3677c6c3888473941277b3a370 |
|
MD5 | 8a17b22d74d1ced0e02e2c6474ddf6ee |
|
BLAKE2b-256 | a98853a9039cab21422ebb378a10f635c11b73201b94a428733b6a9020c33d1d |