/commit_habitrpg

A pre-commit hook to update Habitica.com

Primary LanguageShell

Git commit Habitica

This is a pre-commit hook to update Habitica with a positive habit when a commit is performed.

Prerequisites

This script sources the Habitica api keys from a ~/.secrets/habitrpg.sh in the form of:

export HABITRPG_API_KEY=<your key>
export HABITRPG_API_USER=<your user>
export COMMIT_TASK_ID=<habit task id>

TODO’s

  • Add an argument so that different projects could update different tasks
  • Remove the hard coded paths
  • Testing –