Skip to content

Add ancient Japanese poetry to your commits in a `prepare-commit-msg` hook. Written in the poetic language of Ruby

License

Notifications You must be signed in to change notification settings

talltorp/git-haiku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-haiku

Add ancient Japanese poetry to your commits in a prepare-commit-msg hook.

Written in the poetic language of Ruby 💎

Created by: @tobiastalltorp

git haiku overview

Features

@levelsio mode

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 👇

levelsio mode

How to install on Mac

  1. Set your open ai token

export HAIKU_OPEN_AI_TOKEN=<your-open-ai-token>

  1. Create the file in your repository

touch .git/hooks/prepare-commit-msg

  1. Make the file executable

chmod +x .git/hooks/prepare-commit-msg

  1. Copy the beautiful ruby code found in hooks/prepare-commit-msg into your file and press save.

  2. Make a commit with a title

git commit -m "initial commit"

  1. Haiku added to your commit description 🌸

DEMO

git.haiku.mov

About

Add ancient Japanese poetry to your commits in a `prepare-commit-msg` hook. Written in the poetic language of Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages