Gitmoji: Suggestion about git hook to interactively choose the right emoji for a commit

Created on 16 Nov 2016  路  7Comments  路  Source: carloscuesta/gitmoji

Hello @carloscuesta :sunglasses:!

For CLI git users we can imagine to create a commit-msg hook to be able to choose interactively the right emoji for the commit, and then write the commit message.

The aim of the hook will be to ask for the emoji, ask for the commit message, concatenate them in the final commit message, and execute the commit.

For the interaction we can use https://github.com/SBoudrias/Inquirer.js

Most helpful comment

Released gitmoji-cli 馃帀

npm i -g gitmoji-cli

gitmoji-cli

All 7 comments

The hook is almost exists: https://github.com/tjoskar/emoji-commit-hook, the only thing we have to do is to replace the static list with the gitmoji one. I'll fork it today.

Cool and great idea! @welcoMattic

Will take a look into this but worth making something like emoji-commit-hook!

Well, my vison of it is:

  • Create a npm package with gitmoji as dependency
  • Gitmoji exports a module with gitmojis.json inside
  • The hook package can use the gitmojis list

So we have to create this module ;)

Working on this 馃毀

It's almost done on my side, directly with HTTP request to get gitmojis.json

https://github.com/welcoMattic/gitmoji-commit-hook

Hi I often using angular commit style , and using this hooks i write

https://gist.github.com/hiroqn/505d27bec5afc35a52e5eab2158dbc6a

a

automatically

b

Released gitmoji-cli 馃帀

npm i -g gitmoji-cli

gitmoji-cli

Was this page helpful?
0 / 5 - 0 ratings