Skip to content

SomeoneWithOptions/commiter

Repository files navigation

commiter

A Go CLI tool that automates the git commit process. It stages all changes, generates a clean, plain-text commit message using the OpenRouter API, and commits the changes.

Installation

go build -o commiter .

Usage

  1. Set your OpenRouter API key:

    export OPENROUTER_API_KEY="your-key-here"
  2. Run the tool in your git repository:

    ./commiter

Flags

  • --model: Specify the OpenRouter model to use (default: arcee-ai/trinity-mini:free).
  • --push: Push changes to the remote repository after a successful commit (default: false).
  • --staged: Only commit changes that are already staged (default: false).
  • --dry-run: Preview the diff and generated commit message without staging, committing, or pushing (default: false).
./commiter --push
./commiter --staged
./commiter --dry-run
./commiter --model "openai/gpt-3.5-turbo" --push

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages