Thanks to visit codestin.com
Credit goes to github.com

Skip to content

faceair/smart-commit

Repository files navigation

Smart Commit

AI-powered commit message generator for VS Code. Automatically generate conventional commit messages that meet standards using Azure/OpenAI API.

English · 简体中文 · Report Bug · Request Feature

✨ Features

  • 🤯 Generate meaningful commit messages using ChatGPT / Azure API
  • 🗺️ Support for multiple languages
  • 😜 Gitmoji integration
  • 📝 Follow Conventional Commits specification

📦 Installation

  1. Search for "Smart Commit" in VS Code and click the "Install" button.
  2. Install it directly from the Visual Studio Code Marketplace.

Note
Make sure your node version >= 16

🤯 Usage

  1. Ensure that you have installed and enabled the "Smart Commit" extension.
  2. In VSCode settings, locate the "smart-commit" configuration options and configure them as needed.
  3. Make changes in your project and add the changes to the staging area (git add).
  4. Next to the commit message input box in the "Source Control" panel, click the "Smart Commit" icon button.
  5. Review the generated commit message, and if you are satisfied, proceed to commit your changes.

⚙️ Configuration

Configuration Type Default Required Notes
openai_api_key string None Yes OpenAI token
openai_base_url string https://api.deepseek.com No If using Azure, use: https://{resource}.openai.azure.com/openai/deployments/{model}
openai_model string deepseek-chat Yes OpenAI MODEL
azure_api_version string None No AZURE_API_VERSION
ai_commit_language string en Yes Supports 19 languages
emoji_enabled boolean false Yes Enable or disable Emoji

⌨️ Local Development

$ git clone https://github.com/faceair/smart-commit.git
$ cd smart-commit
$ npm install

Open the project folder in VSCode. Press F5 to run the project.

🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

🔗 Credits

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •