A package to create changelogs for your git tracked projects.
Project description
Readme on changelog.py
execution information:
This script aim to provide changelogs on git-tracked projects.
Run changelog.py
script in your directory
and it'll generate the changelog file.
In order to obtain actual changelog, run:
You can use git changelog from command line directly:
# ... code on project
git commit #add your commit message on work you've done
python3 -m git_changelog vX.Y.Z "Annotation for this version" #generate changelog
git add changelog.md #stage the changelog to current commit
git commit --amend #add the changelog to current commit, leave commit message as is.
git tag -a vX.Y.Z -m "Annotation for this version" #add the tag you've set earlier in changelog.
git push --follow-tags #publish your changes and the new tag.
Or you can elaborate your workflow python scripts to use git_changelog as a python module:
# CICD_script.py
# ... do some CICD work
from git_changelog import logger
l = logger('vX.Y.Z', 'Annotation for this version') #create logger instance
l.make() #print the log
# ... do other CICD work
More actual information on colophon of scripts:
#actual information on colophon:
python3 changelog.py --help
correct commit messages:
To make this scripts work properly, your commit messages should look like any of this:
[feature] feature description here
[fix] fix description
[changelog] minor changes description
[internal] this section will be generated only if --internal argument is given.
This commit message string will be ommited from changelog.
Releases:
Any tagged commit will be interpreted as release. To create tag, write:
git tag -a v<version>
... tag anotation ...
git push --follow-tags
Any commit above the last tag will be marked as tag provided in command line arguments and annotated accordingly.
Project details
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 changelog_md-0.1.1.tar.gz
.
File metadata
- Download URL: changelog_md-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0db7c32032e05ed8a9e9f55921666ab640fa2e6860551d2631830cb32442a02 |
|
MD5 | 2322ce650ee4794afdd8691aeb4b967e |
|
BLAKE2b-256 | a29cf978adc5e42681a03e1e492348d2c0b3329007c71bb9530feede7d25c8bc |
File details
Details for the file changelog_md-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: changelog_md-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a490e2c598076416712e4bcbd511044204be1ee632eb1f9d0b39ff31e57f64b |
|
MD5 | 254444c30839b8e34097818472726675 |
|
BLAKE2b-256 | 8c458729c4a351d63b05e909721999420240f3b1b5c31951871210820d4b259f |