Last updated:
0 purchases
autochangelog 0.6.0
A quick script that will generate a changelog for any git repository using conventional style commit messages.
Installation
Install and update using pip:
pip install auto-changelog
or directly from source(via Poetry):
poetry install
poetry build
pip install dist/*.whl
Usage
You can list the command line options by running auto-changelog –help:
Usage: auto-changelog [OPTIONS]
Options:
-p, --path-repo PATH Path to the repository's root directory
[Default: .]
-t, --title TEXT The changelog's title [Default: Changelog]
-d, --description TEXT Your project's description
-o, --output FILENAME The place to save the generated changelog
[Default: CHANGELOG.md]
-r, --remote TEXT Specify git remote to use for links
-v, --latest-version TEXT use specified version as latest release
-u, --unreleased Include section for unreleased changes
--template TEXT specify template to use [compact] or a path to a
custom template, default: compact
--diff-url TEXT override url for compares, use {current} and
{previous} for tags
--issue-url TEXT Override url for issues, use {id} for issue id
--issue-pattern TEXT Override regex pattern for issues in commit
messages. Should contain two groups, original
match and ID used by issue-url.
--tag-pattern TEXT override regex pattern for release tags. By
default use semver tag names semantic. tag should
be contain in one group named 'version'.
--tag-prefix TEXT prefix used in version tags, default: ""
--stdout
--tag-pattern TEXT Override regex pattern for release tags
--starting-commit TEXT Starting commit to use for changelog generation
--stopping-commit TEXT Stopping commit to use for changelog generation
--debug set logging level to DEBUG
--help Show this message and exit.
A simple example
Contributing
To setup development environment, you may use Poetry.
These instructions will assume that you have already Poetry as well as GNU make locally installed
on your development computer.
These instructions will assume that you have already poetry (https://python-poetry.org/) locally installed
on your development computer.
Fork the auto-changelog repo on GitHub.
Clone your fork locally:
$ git clone [email protected]:your_name_here/auto-changelog.git
Initialize your local development environment of auto-changelog.
This will include creating a virtualenv using poetry, installing dependencies and registering git hooks
using pre-commit:
$ cd auto-changelog/
$ make init-dev
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
When you’re done making changes, check that your changes pass linting, formating, and the
tests, including testing other Python versions with tox:
$ make lint # check style with flake8
$ make format # run autoformat with isort and black
$ make test # run tests quickly with the default Python
$ make test-all # run tests on every Python version with tox
Commit your changes and push your branch to GitHub. Upon commit pre-commit will automatically run
flake8 and black and report if changes have been made or need to be fixed by you:
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
Submit a pull request through the GitHub website.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.