commit-ai

command module
v0.0.0-...-e44e8cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 1 Imported by: 0

README

Commit-AI

Commit-AI is a CLI tool designed to automate the generation of meaningful commit messages for your Git repositories. Leveraging the power of OpenAI's models, it analyzes your git diffs and crafts commit messages that are concise, descriptive, and follow best practices.

Demo

Features

  • Automated Commit Messages: Generate commit messages based on the changes in your git repository.
  • Customizable Prefixes: Supports prefixes for different types of commits (feat, fix, refactor, chore).
  • Easy Integration: Simple setup and usage within any Git repository.

Requirements

  • Go version 1.21.1 or higher.
  • An OpenAI API key.

Installation

With Go
  1. Ensure you have Go installed on your system (version 1.21).
  2. Clone the repository to your local machine.
  3. Navigate to the cloned directory and run go build && go install to compile the application.
Using the binary
  • Linux
  curl https://raw.githubusercontent.com/Jonath-z/commit-ai/master/install.sh | sh

Usage

To use Commit-AI, you need to provide your OpenAI API key using the --apiKey flag. Run the following command in your terminal:

commit-ai --apiKey YOUR_API_KEY

Contributing

If you would like to contribute to the project, please fork the repository and make a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL