Skip to content

@stephansama/ai-commit-msg

generate commit messages using ai

Open Table of contents
Terminal window
pnpm install @stephansama/ai-commit-msg
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
  1. Install and initialize husky

    Terminal window
    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"
Module Description

ai

arguments

cli

config

index

schema

utilities