gpt-commit  by markuswt

CLI tool for generating commit messages using GPT-3

created 2 years ago
267 stars

Top 96.7% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a command-line tool to automatically generate Git commit messages using OpenAI's ChatGPT. It's designed for developers who want to streamline their commit workflow by leveraging AI for descriptive and context-aware commit messages.

How It Works

The tool analyzes staged Git changes and sends this information to the OpenAI API to generate a commit message. It then prompts the user to edit the generated message before committing, allowing for review and refinement. This approach leverages the advanced natural language understanding capabilities of large language models to create more informative commit summaries.

Quick Start & Requirements

  • Install: pip3 install openai and clone the repository.
  • Set OPENAI_API_KEY environment variable or configure gpt-commit.py.
  • Optional: Copy gpt-commit.py and prepare-commit-msg to .git/hooks to integrate with git commit.

Highlighted Details

  • Generates commit messages using ChatGPT.
  • Integrates with Git commit workflow via hooks.
  • Requires an OpenAI API key.

Maintenance & Community

The project appears to be a single-author repository with no explicit mention of community channels or ongoing maintenance efforts.

Licensing & Compatibility

The repository does not explicitly state a license.

Limitations & Caveats

The tool shares staged file names and contents with the OpenAI API, which may have privacy implications. OpenAI's data usage policies apply, with data retention limited to 30 days by default for API usage.

Health Check
Last commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.