NocturnLabs
Projects

Commit Message

Generate conventional commit messages automatically using AI.

Commit Message

Automatically generate conventional commit messages by analyzing your staged changes.

Features

  • Git Integration: Analyzes staged changes automatically
  • Conventional Commits: Follows the conventional commits specification
  • AI-Powered: Uses LLMs to understand code context
  • Customizable: Configure commit message style

Installation

# Clone the repository
git clone https://github.com/NocturnLabs/commit-message
cd commit-message
cargo install --path .

Usage

# Stage your changes
git add .

# Generate commit message
commit-message

# Generate and commit directly
commit-message --commit

Configuration

Create a .commit-message.toml in your project:

[style]
format = "conventional"  # conventional, simple, detailed
max_length = 72
include_scope = true