FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chophe/ai-commit: ๐Ÿค– AI-powered Git commit message generator that creates meaningful, standardized commits using OpenAI's GPT models. Supports Conventional Commits, Gitmoji, and custom formats. Streamline your Git workflow with AI-generated commit messages that follow best practices. Features: โœจ Conventional Commits support ๐ŸŽจ Gitmoji integration ๐ŸŒ Multiple langua ยท GitHub

Latest commit

ย 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI-Commit ๐Ÿค–

AI-powered Git commit message generator that follows conventional commit standards.

Features โœจ

  • Generates meaningful commit messages using OpenAI's GPT models
  • Follows Conventional Commits format
  • Supports emoji commits (Gitmoji)
  • Configurable commit message language and length
  • Environment variable support
  • Custom OpenAI base URL support

Prerequisites ๐Ÿ“‹

  • Node.js (v14 or higher)
  • Git
  • OpenAI API key

Installation ๐Ÿš€

npm install ai-commit

Setup โš™๏ธ

1. Create a `.env` file in the root directory of your project.
  1. Add your OpenAI API key to the .env file:
OPENAI_API_KEY=your-api-key-here
  1. (Optional) Create a config.json file to customize settings:
{
  "openAI": {
    "apiKey": "[env]:OPENAI_API_KEY",
    "baseUrl": "https://api.openai.com/v1"
  },
  "commit": {
    "language": "en",
    "maxCharacter": 100
  }
}

Usage ๐Ÿ’ป

After staging your changes with git add, simply run:

ai-commit

The tool will:

  • Get the staged changes diff
  • Send it to OpenAI's API
  • Generate a conventional commit message
  • Create the commit with the generated message

Configuration Options ๐Ÿ› ๏ธ

Option Description Default
commit.language Commit message language "en"
commit.maxCharacter Maximum commit message length 100
openAI.baseUrl Custom OpenAI API endpoint "https://api.openai.com/v1"

Commit Message Standards ๐Ÿ“

AI-Commit supports multiple commit message formats:

  • Conventional Commits
  • Gitmoji
  • Semantic Commit Messages
  • Custom formats through configuration

Contributing ๐Ÿค

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes using AI-Commit
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Acknowledgments ๐Ÿ™

  • OpenAI for providing the GPT API
  • Conventional Commits community
  • Gitmoji project

This README provides a clear overview of the project, its features, setup instructions, and usage guidelines while maintaining a professional and engaging tone. It's structured to help users quickly understand and start using the AI-Commit tool.

Commit Message Standards ๐Ÿ“

AI-Commit supports multiple commit message formats:

  • Conventional Commits
  • Gitmoji
  • Semantic Commit Messages
  • Custom formats through configuration

๐Ÿ“š Documentation:

About

๐Ÿค– AI-powered Git commit message generator that creates meaningful, standardized commits using OpenAI's GPT models. Supports Conventional Commits, Gitmoji, and custom formats. Streamline your Git workflow with AI-generated commit messages that follow best practices. Features: โœจ Conventional Commits support ๐ŸŽจ Gitmoji integration ๐ŸŒ Multiple langua

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL