Generate commit messages using GPT-3.
Project description
gpt-commit
Generate commit messages using GPT-3. To use gpt-commit
, simply invoke it whenever you'd use git commit
. Git will prompt you to edit the generated commit message.
git add .
gpt-commit
Based on Markus' gpt-commit.
Installation
Minimum Python version required: 3.10.
pipx
This is the recommended installation method.
$ pipx install gpt-commit-cli
pip
$ pip install gpt-commit-cli
Getting Started
Set the environment variable OPENAI_API_KEY
to your OpenAI API key, e.g. by adding the following line to your .bashrc
.
export OPENAI_API_KEY=<YOUR API KEY>
export OPENAI_ORG_ID=<YOUR ORG ID> # optional
Develop
$ git clone https://github.com/tddschn/gpt-commit-cli.git
$ cd gpt-commit-cli
$ poetry install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpt-commit-cli-0.1.1.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file gpt-commit-cli-0.1.1.tar.gz
.
File metadata
- Download URL: gpt-commit-cli-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.5 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49b9ce73f78486e9c7502239136d3d18bc1ca70c57631b68e898c3584876ae92 |
|
MD5 | 6a9ea7b3fe2ed929d1140f6477f44a2b |
|
BLAKE2b-256 | d66a579e7566fbf59bfb39b5ac5fbf36a5036ef9463a8d257006991d2a96afce |
File details
Details for the file gpt_commit_cli-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gpt_commit_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.5 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4014e54dfaa9b05155719fff228c5ddf64310bc665cd742684034b533772c9 |
|
MD5 | 2144928c1d6f98869051a622c1151ea3 |
|
BLAKE2b-256 | de9ea8cfe91141692477432f2710c7f8c1dca2286fd91fad7ee1b339a6b4c984 |