Crates.io | commitgpt |
lib.rs | commitgpt |
version | 2.0.0 |
source | src |
created_at | 2023-04-04 23:59:19.434356 |
updated_at | 2023-08-25 20:15:31.481661 |
description | A CLI tool to generate commit messages using OpenAI's ChatGPT based on staged changes in a Git repository. |
homepage | |
repository | https://gitlab.com/kerkmann/commitgpt |
max_upload_size | |
id | 830567 |
size | 85,622 |
This repository contains the source code for CommitGPT, a tool that helps you create commit messages using the OpenAI ChatGPT API. It uses the GPT-4 architecture and provides a simple CLI interface for generating commit messages based on the staged changes in a Git repository.
To use CommitGPT, you need:
cargo install commitgpt
mkdir -p ~/.config/commitgpt
touch ~/.config/commitgpt/config.toml
echo 'api_key = "YOUR_OPENAI_API_KEY"' > ~/.config/commitgpt/config.toml
git add
.commitgpt
You can customize the behavior of CommitGPT using command-line options. For example, to generate 7 commit message suggestions and limit the message length to 300 tokens, run:
commitgpt -s 7 -t 300
For more options, run commitgpt --help
.
Please feel free to submit issues and pull requests on GitLab: https://gitlab.com/kerkmann/commitgpt
I am not affiliated, associated, authorized, endorsed by, or in any way officially connected with OpenAi, ChatGPT and the OpenAi are trademarks or registered trademarks of OpenAi in San Francisco, CA and/or other countries.
Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
https://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Licence for the specific language governing permissions and limitations under the Licence.