Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shun-shobon/justcommit

AI-powered commit message generator
https://github.com/shun-shobon/justcommit

generator git gpt rust

Last synced: 2 months ago
JSON representation

AI-powered commit message generator

Awesome Lists containing this project

README

        

# JustCommit

## Overview

JustCommit is an AI-powered commit message generator.
Based on the changes in your Git repository, it automatically suggests a commit message for you.
All you have to do is **Just Commit**.
This project is inspired by opencommit.

## Installation

You can either clone this repository and build it yourself using Rust or download the latest binary from the Release page.
Make sure to place the binary in a directory included in your system's path.

## Usage

Before committing with Git, execute JustCommit
It will automatically detect the staged changes in your Git repository and output a suggested commit message to the standard output.
While it currently only provides the output, future plans include supporting Git-hooks and launching an editor automatically.

## Configuration

JustCommit requires an OpenAI token to function. Place the token in `config.toml`. This configuration can be located in one of the following locations:

- `$XDG_CONFIG_HOME/justcommit` (For non-Windows users)
- `$APP_DATA/justcommit` (For Windows users)
- `$HOME/.config/justcommit` (If the above environment variables are not defined)

The configuration format is as follows:

```toml
openai_token = ""
```

If you're uncomfortable storing your token in plain text, you can use **a secret reference from 1Password**.
JustCommit will automatically detect the secret reference and use the token stored in 1Password.