Automatically generate a changelog using GPT-3
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
Built Distribution
File details
Details for the file gptchangelog-0.2.0.tar.gz
.
File metadata
- Download URL: gptchangelog-0.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a280d1f195cfdf85bf7acc83b4a830511b3cf703151014f1a115bc324f33b4 |
|
MD5 | 3bea9f73c5471122dcdc6d6308bb1732 |
|
BLAKE2b-256 | 2cc0b909099268051dde3563f8808657ff19a1336a2e260d40f9391b52800362 |
File details
Details for the file gptchangelog-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: gptchangelog-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd5b100121211aa68c6c2a3801f5a6c518e7034b64cf8d83f878c5195a02150 |
|
MD5 | 2a06e7d091963716abae5b1c725895d1 |
|
BLAKE2b-256 | 912266cf0db06d5d184d79e07b490a835f34477c7362807c7e3f459e6ed08e61 |