Skip to main content

A module that generates changelogs based on git tags.

Project description

Changelog Generator

A module that generates changelogs based on git tags. It uses conventional commits (conventionalcommits.org) to read and scope commits. Markdown is used for formating.

Commands

$ pychangelog generate [<path>] [--branch=<string>] [--types=<list>] [--bodytags=<list>]

  • generates new CHANGELOG.md file at repo root
  • overrides old CHANGELOG.md

$ pychangelog add [<path>] [--branch=<string>] [--types=<list>] [--bodytags=<list>]

  • ceeps the content of the old CHANGELOG.md while adding new version logs

$ pychangelog printout [<path>] [--branch=<string>] [--types=<list>] [--bodytags=<list>]

  • prints the generated changelog in terminal instead of writing it in the CHANGELOG.md
  • does not touch the CHANGELOG.md

Options

Option Format Description Default
path TEXT path to root of the git repository .
--branch TEXT git branch main
--types TEXT comma seperated list commit types to show in changelog feat,fix,chore,docs,refactor,test
--bodytags TEXT comma seperated list body tags that schould be shown in changelog BREAKING CHANGE,MAJOR

Instalation

You can install the changelog generator via PyPI:

pip install python-changelog

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

python-changelog-0.3.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file python-changelog-0.3.1.tar.gz.

File metadata

  • Download URL: python-changelog-0.3.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for python-changelog-0.3.1.tar.gz
Algorithm Hash digest
SHA256 abd2b65059bc28315807ab021e7cab812aaae90bb5f1b08c72119fc1c12db1d7
MD5 3f001e0cdbae17e50edf9885ae4ff5d0
BLAKE2b-256 1d3f58c844fd9ac4f5c8754df3e50090c94be89aeb7ceb5bf95e364ad6bded36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page