Commit Suggestions is a tool that will recommend commit messages based on changes to your codebase!
If you're anything like me, you forget to make good commit messages which is always a pain when you inevitably go back through the git log! Well, not anymore!
- ✨ AI-powered commit message generation based on code changes
- 🛠 Parses Git Diff output feed into prompt generator
- 🔥 Saves time by eliminating the need to manually craft messages
- Python 3.8+ installed
- Ensure you have Dependency 1 and Dependency 2 installed.
- Ensure you have uv installed for managing and synching the python package.
- Ensure your OpenAI env variable is set:
export OPENAI_API_KEY="your-secret-key"
# Clone the repository
git clone https://github.com/ROMANT21/commit-suggestions
cd commit-suggestions
# Install dependencies and create python virtual environment (venv)
uv sync
# Activate venv (for linux)
source .venv/bin/activate
# Run the program
commit-suggestions
Want to improve Commit Suggestions? Contributions are welcome!
- Fork this repository
- Create a new branch (git checkout -b feature-branch)
- Commit your changes (git commit -m "Add feature X")
- Push to your fork (git push origin feature-branch)
- Submit a Pull Request
Found a bug? Have a suggestion? Open an (issue)[https://github.com/ROMANT21/commit-suggestions/issues].
This project is licensed under the MIT License. See LICENSE for details.
If you find Commit Suggestions helpful, please star ⭐ this repository and share it with others!