Skip to main content

Generate changelog from a git repository

Project description

apx-changelog

PyPI package to generate changelogs from a git repository.

For examples, look at changelogs of the following projects:

Usage

Must be run in the root of a git repository.

usage: changelog.py [-h] --ref REF
                    [--comments]
                    [--out OUT]
                    [--releases RELEASES] 
                    [--log LOG]
                    [--title TITLE]
                    [--ver VER]

Changelog generator for git repository

optional arguments:
  -h, --help           show this help message and exit
  --ref REF            git ref from which to collect changes
  --comments           append comments section
  --out OUT            output filename to store collected changelog markdown text
  --releases RELEASES  releases repository name if different
  --log LOG            filename of changelog file to update
  --title TITLE        project title for changelog file updates
  --ver VER            project version X.Y[.Z] for changelog file updates
  --mkver MKVER        filename to store current version (X.Y.Z)

The utility will parse commits and include commit messages starting with the following keywords:

  • feat: New Features
  • fix: Bug Fixes
  • refactor: Refactoring
  • perf: Performance Enhancements
  • opt: Optimizations
  • docs: Documentation Changes
  • chore: Administration and Chores

Example commit message:

fix: a fix of a bug (closes user/repo#123)

Will produce the following section in the changelog output:

# Bug Fixes

* a fix of a bug (closes [`123`](https://github.com/user/repo/issues/123))

The issue user/repo can be omitted, then the link will point to the current repository.

A multi-line commit message will add comments section in changelog, displaying full text of the commit message.

The changelog file specified with the --log option can have a template header, written in /.changelog file.

Repository tags

The git repository can have tags in the format v1.2 to simplify versioning (vZ.Y.Z) using git.describe('--always', '--tags', '--match=v*.*').

Releases must be tagged in the format release-X.Y.Z.

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

apx-changelog-1.0.18.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

apx_changelog-1.0.18-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file apx-changelog-1.0.18.tar.gz.

File metadata

  • Download URL: apx-changelog-1.0.18.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for apx-changelog-1.0.18.tar.gz
Algorithm Hash digest
SHA256 7fd87f5b11ae8e08d761897bbca18e57a1c8425197822acd87af3df8a81e6bbf
MD5 85481777e35417b9bc2a763dafb30f30
BLAKE2b-256 22a776458d1aa07dde0d1dcc2a596305f36900c81f7af0c48486c813b14336fc

See more details on using hashes here.

File details

Details for the file apx_changelog-1.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for apx_changelog-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 ac3a256277acd22e0f0968a947c71dd1c0822a7cc97fe17c3ff26db1fde33abb
MD5 858cea9d11d17a3eb2f4e7c96397870a
BLAKE2b-256 60b2b5dce5a97e8b47d5012a0334fa285c9185641edf05ddf3c8d1e6f87b0845

See more details on using hashes here.

Supported by

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