Skip to main content

Automatically generate a changelog using AI

Project description

GPT Changelog

GPT Changelog is a powerful tool designed to automatically generate high-quality changelogs with remarkable speed, using OpenAI's latest models. By analyzing commit messages since the most recent tag, GPT Changelog creates a well-structured, markdown-formatted changelog and seamlessly integrates it into your CHANGELOG.md file.

Features

  • Fast and Efficient: Quickly generates changelogs by leveraging the latest GPT models.
  • High Quality: Produces clear, concise, and informative changelogs, ensuring your project documentation is always up-to-date.
  • Seamless Integration: Automatically prepends the generated changelog to your existing CHANGELOG.md file, or creates one if it doesn't exist.

Installation

Using pip

To install GPT Changelog, simply run:

pip install gptchangelog

Configuration

Before using GPT Changelog, you need to configure your OpenAI API key and set the desired model. Create a configuration file named config.ini in the $HOME/.config/gptchangelog directory with the following content:

[openai]
api_key = your_openai_api_key_here
model = gpt-4o

Replace your_openai_api_key_here with your actual OpenAI API key. You can set the model parameter to the desired version of GPT (e.g., gpt-4o).

Usage

Generating a changelog and updating your CHANGELOG.md file is straightforward. Navigate to your Git repository directory and run:

gptchangelog

This command will:

  1. Fetch commit messages since the most recent tag.
  2. Determine the next version based on semantic versioning.
  3. Generate a changelog using the specified GPT model.
  4. Prepend the generated changelog to the CHANGELOG.md file. If the file doesn't exist, it will create one.

Example

Here's an example of how easy it is to use GPT Changelog:

cd /path/to/your/repo
gptchangelog

Within seconds, your CHANGELOG.md will be updated with the latest changes, keeping your project documentation both current and professional.

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.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

gptchangelog-0.5.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gptchangelog-0.5.1.tar.gz
Algorithm Hash digest
SHA256 cf5973b8dc9c70688e600ff9a0d2eceb17702684c70cd827e905c0f2d0732667
MD5 b45ff9e064a00c7ce1ef3aa96402f96f
BLAKE2b-256 8b1f18ec1cd793f8899f8e4be828ef1c38238b4dfe4fd4b8603052497548d797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gptchangelog-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24227f9eecbfa60cce86d1866bd9a6eb9b10e618c40a216538568363432c5195
MD5 8db34894252ac0a2a0db248bcc18b65c
BLAKE2b-256 908e479ef0d173ab928c8a93e3a7116bcb9524cffe7b26e21265af8a6f78930d

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