Slick Commit is a tool that leverages OpenAI's GPT-4 to automatically generate high-quality commit messages based on staged changes in your Git repository. It uses AI to analyze the git diff and creates concise, readable, and technically sound commit messages.
Slick Commit is a tool that leverages OpenAI's GPT-4 to automatically generate high-quality commit messages based on staged changes in your Git repository. It uses AI to analyze the git diff
and creates concise, readable, and technically sound commit messages—far better than most humans can craft on the spot.
feat
, fix
, docs
, etc.).package-lock.json
.To install Slick Commit, follow these steps:
Clone this repository:
git clone https://github.com/your-username/slick-commit.git
Navigate to the project directory:
cd slick-commit
Install the required dependencies:
npm install
Set up your OpenAI API key by adding it to your environment variables:
export OPENAI_API_KEY=your-api-key-here
After making your changes and staging them in Git, use the following command to automatically generate and commit your changes with an AI-generated message:
npm run slick-commit
This will:
git diff
of your staged changes.feat(authentication): enhance auth token verification
- feat(token): improved validation logic for token length in auth.service.ts
- File: src/auth/auth.service.ts
- Changes: Added better token validation and expiration checks
- fix(auth): resolved an issue where invalid tokens were being accepted in some cases
- File: src/auth/auth.guard.ts
- Changes: Improved error handling and logging
This update enhances token validation to prevent security loopholes. No breaking changes detected.
OPENAI_API_KEY
environment variable to use this tool.To run this project locally:
Clone the repo and install dependencies:
git clone https://github.com/your-username/slick-commit.git
cd slick-commit
npm install
Make sure your OpenAI API key is available in your environment variables.
Run the tool:
npm run slick-commit
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the ISC License.