CLI tool for generating commit messages using ChatGPT
Top 26.8% on sourcepulse
This project provides an automated tool for generating Git commit messages using ChatGPT, targeting developers who want to streamline their commit workflow and adhere to conventional commit standards. It simplifies the process of creating descriptive and consistent commit messages by leveraging AI.
How It Works
The tool executes git diff --cached
to capture staged changes. This diff is then sent to ChatGPT, which is prompted to suggest commit messages adhering to conventional commit formats. The user is presented with these AI-generated suggestions for selection.
Quick Start & Requirements
npx commitgpt
.commitgpt.json
for model parameters and .commitgpt-template
for prompt customization.Highlighted Details
.commitgpt.json
..commitgpt-template
for tailored suggestions.Maintenance & Community
acheong08/ChatGPT
, transitive-bullshit/chatgpt-api
, and wong2/chat-gpt-google-extension
.Licensing & Compatibility
Limitations & Caveats
The project's license is not explicitly stated, which may impact commercial use or integration into closed-source projects. The effectiveness of generated messages is dependent on the quality of the diff and the capabilities of the underlying OpenAI model.
1 year ago
Inactive