1.1.6 • Published 4 months ago

@syedharis14/git-ai-commit v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

git-ai-commit

npm

AI-powered Git commit message generator using OpenAI.

Features

  • 🚀 Generates AI-powered commit messages based on staged changes
  • 📋 Optionally copies commit messages to clipboard
  • 🔄 Auto-commit support
  • 🌍 Supports multiple languages (--lang option)
  • 📊 Usage statistics tracking
  • 🔄 Update notifications

Installation

npm install -g @syedharis14/git-ai-commit

Usage

Generate a Commit Message

git-ai-commit generate

Auto Commit

git-ai-commit generate --auto-commit

Copy Commit Message

git-ai-commit generate --copy

Generate Message in Specific Language

git-ai-commit generate --lang fr

View Usage Stats

git-ai-commit stats

Configuration

Create a .git-ai-commitrc in your project root:

{
    "model": "gpt-4o",
    "maxLines": 100,
    "autoCommit": false,
    "copy": false,
    "lang": "en",
    "analytics": true
}

Environment Variables

Set OPENAI_API_KEY in your .env file:

OPENAI_API_KEY=your_api_key_here

CI/CD Release Workflow

This package uses GitHub Actions for automatic releases and NPM publishing:

  • Runs tests and builds TypeScript
  • Pushes tags and releases to GitHub
  • Publishes to NPM and GitHub Packages

Links

1.1.6

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago