Skip to main content

Automatically generate a changelog using AI

Project description

GPT Changelog

GPT Changelog is a tool to automatically generate a changelog using OpenAI's GPT-3 based on commit messages since the most recent tag. It will generate a changelog in Markdown format and prepend it to the CHANGELOG.md file.

Installation

Using pip

pip install gptchangelog

Configuration

Before using GPT Changelog, you need to create a configuration file named config.ini in the $HOME/.config/gptchangelog directory.

[openai]
api_key = your_openai_api_key_here

Replace your_openai_api_key_here with your actual OpenAI API key.

Usage

To generate a changelog and prepend it to the CHANGELOG.md file, navigate to your Git repository directory and run the following command:

gptchangelog

The script will fetch commit messages since the most recent tag, determine the next version based on semantic versioning, generate a changelog using OpenAI's GPT-3, and prepend the changelog to the CHANGELOG.md file. If the CHANGELOG.md file does not exist, the script will create it.

License

This project is licensed under the MIT License.

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

gptchangelog-0.5.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

gptchangelog-0.5.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file gptchangelog-0.5.0.tar.gz.

File metadata

  • Download URL: gptchangelog-0.5.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for gptchangelog-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f3e7652875b09057391761676ca5542a3019cc46e511a835f68ad2c117b76a76
MD5 fbbfde6b78a577b14f1d5a7d72a5121c
BLAKE2b-256 0f0aba36618a4c3fdb5bd3ea35601856acd8b010871c80872e6b55348f4ecb5d

See more details on using hashes here.

File details

Details for the file gptchangelog-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gptchangelog-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9c9426220e36b025388afba3892db168cbe7de42f3a873419b853aad9cdebc
MD5 804a9ad8f16acbc4dd89d2aba2c1f45a
BLAKE2b-256 df07098bcaac24ebca700faa38dd5d8cec3aa54517f5a0aa07b09c1f80daa68e

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