Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

shun-shobon/justcommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

openai_token = "<Your 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.

About

AI-powered commit message generator

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages