Skip to content

A simple git hook to display current project TODO comments at regular intervals

License

Notifications You must be signed in to change notification settings

kimpers/todo-hook-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

TODO-hook-me

A simple bash script that can be added to as a post-commit hook to display a project's TODO comments every now and then after you make a commit.

  • 10% of all commits it will display all TODO(your_username) comments
  • 5% of all commits it will display all TODO comments

By being regularly reminded of technical current technical debt it makes it easier to prioritize cleaning things up and keep you technical debt ☢ to a minimum.

Getting started

  1. This project uses Ag for searching for comments in the code base. Follow the instructions for installing Ag
  2. Set your GitHub/GitLab username as the environment GIT_USERNAME by adding export GIT_USERNAME=your_username to your terminal .rc file (e.g. ~/.bashrc or ~/.zshrc)
  3. Setup git templates git config --global init.templatedir '~/.git-templates'
  4. Create a hooks folder mkdir -p ~/.git-templates/hooks
  5. Symlink todo.sh to your global post-commit hook ln -s /path/to/todo-hook-me/todo.sh ~/.git-templates/hooks/post-commit
  6. Work actively to keep the technical debt ☢ away

About

A simple git hook to display current project TODO comments at regular intervals

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages