AI Commit Message Generator
Pricing
Pay per event
Go to Apify Store
AI Commit Message Generator
Generate meaningful, conventional commit messages from git diffs. Paste a git diff or patch and get a well-formatted commit message that follows conventional commits standards. Supports standard, detailed, and one-line styles.
AI Commit Message Generator 📝
An Apify Actor that generates meaningful, conventional commit messages from git diffs using AI.
Features
- AI-Powered: Uses OpenRouter LLMs to write natural, descriptive commit messages
- Multiple Styles: Conventional Commits, detailed multi-paragraph, or one-line
- Smart Detection: Auto-detects commit type (feat, fix, refactor, etc.) and scope from the diff
- Truncation: Handles large diffs gracefully
- Fallback: Template-based fallback when LLM is unavailable
Input
| Field | Type | Required | Description |
|---|---|---|---|
| diff | string | ✅ | Git diff or patch content |
| style | string | ❌ | conventional, detailed, or one-line |
| includeScope | boolean | ❌ | Auto-detect scope from changed files |
Output
The Actor pushes a dataset entry with:
commit_message— Generated commit messagestyle— Style usedstats— Diff statistics (files changed, lines added/removed, detected type)
Example Use Cases
- CI/CD pipelines that auto-generate commit messages for PRs
- Developers who want well-formatted commits without the mental overhead
- AI agents that need to summarize code changes