Skip to main content

A very simple script to generate a changelog from a repo with Conventional-Commits-compatible commit messages.

Project description

gen_changelog

gen_changelog is a very simple script that generates a changelog from a repository with commit messages compatible with Conventional Commits. The main difference of this script from gitchangelog is that this script will generate sections from dates/months instead of git tags of versions.

Usage

Just run it in the root of your repository:

$ ./gen_changelog "Your project's name"

You're done.

Customization

You can customize the sections you want in the changelog by passing the --categories parameter:

$ ./gen_changelog --categories "add:Added|rem:Removed|chg:Changed|cs:CS:GO stuff"

With pre-commit

To use this with pre-commit, add this to your .pre-commit-config.yaml:

- repo: https://gitlab.com/stavros/gen_changelog.git
  rev: ccc6fa1dbe1a937c9b729e356b5fd91bf9d59ca4
  hooks:
  - id: gen-changelog
    stages: [commit]

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

gen_changelog-0.1.1.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

gen_changelog-0.1.1-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

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