Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.92 KB

File metadata and controls

58 lines (39 loc) · 1.92 KB

@stephansama / ai-commit-msg

Source code Documentation NPM Version JSR socket.dev npm downloads

generate commit messages using ai

Table of contents
Open Table of contents

Installation

pnpm install @stephansama/ai-commit-msg

CLI Options

Option Alias Description Type
--config -c Path to config file string
--output -o Output file for commit-msg string
--verbose -v Enable verbose logging boolean

Usage

Husky

  1. Install and initialize husky

    npm install --save-dev husky && npx husky init
  2. create the prepare-commit-msg hook by creating a file located at .husky/prepare-commit-msg

    #!/bin/sh
    
    ai-commit-msg -o "$1"