Add ancient Japanese poetry to your commits in a prepare-commit-msg
hook.
Written in the poetic language of Ruby 💎
Created by: @tobiastalltorp
Pieter Levels writes no commit message before pushing to production.
https://twitter.com/levelsio/status/1590908364393156608?s=20
That shouldn't stop him from getting some poetry into his deploys!
Here's an example of a haiku written for an empty commit message 👇
- Set your open ai token
export HAIKU_OPEN_AI_TOKEN=<your-open-ai-token>
- Create the file in your repository
touch .git/hooks/prepare-commit-msg
- Make the file executable
chmod +x .git/hooks/prepare-commit-msg
-
Copy the beautiful ruby code found in hooks/prepare-commit-msg into your file and press save.
-
Make a commit with a title
git commit -m "initial commit"
- Haiku added to your commit description 🌸