prepare-commit-msg hook for Gitmoji.
Python 3.8
Poetry 1.4.2
Patchelf 0.10
poetry install --dev-dependency
sh ./build.sh
cp ./dist/ghemoji ~/.local/bin/ghemoji
chmod +x ~/.local/bin/ghemoji
Install git hook:
ghemoji -i "path/to/repo"
Uninstall git hook:
ghemoji -u "path/to/repo"
Notice: colon symbol - (:) at the end of text
Text | Emoji | Description |
---|---|---|
init: | 🎉 | begin a project |
feat: | ✨ | introduce new features |
fix: | 🚑️ | fix bug |
style: | 💄 | add or update the UI and style files |
revert: | ⏪️ | revert changes |
pref: | ⚡️ | improve performance |
refactor: | ♻️ | refactor code |
test: | ✅ | add, update, or pass tests |
ci: | 👷 | add or update CI build system |
typo: | ✏️ | fix typos |
docs: | 📝 | add or update documentation |
Add or update emoji by create file ghemoji.yaml
in your repo directory
replace:
- "init:": 👌 # this will replace default "init:" by 👌
- "beers:": 🍻 # this will replace "beers:" by 🍻 in commit message