commitmonkey is a Git hook that rewrites your boring commit messages into brutally honest, questionably professional roasts.
Because if you're going to break prod, at least be funny about it.
To generate messages that are relevant, it's best to use OpenAI.
Create a project, add come credits and get an API key
npm install -g commitmonkey
You configure options with yaml file in home directory ~/.commitmonkey.yaml
option | details |
---|---|
mode | Specify how the commit message is updated. Options: replace , append |
profile | Specify the personality to use. You can use anything you like here. Ideas: intern , senior , ai , cto |
strategy | Specify roast strategy. Options: openai , basic (hard coded replacements) |
openApiKey | OpenAI API key to generate roasts. Needed for openai strategy. |
cat > ~/.commitmonkey.yaml << 'END'
mode: replace
profile: cto
strategy: openai
openApiKey: <ADD_YOUR_API_KEY>
END
commitmonkey uses git hooks. The hook needs to be initialized in each repo you want to be roasted in.
Note: if you have any custom commit-msg
- it will be overwritten.
cd ~/my-git-project
commitmonkey init-hook
# you commit:
git commit -m "fix typo"
# roast appears:
"Fixed a bug. Or made it worse. Who knows?"