Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 783 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 783 Bytes

misc-scripts

Bits of scripts that didn't fit anywhere else

prepare-commit-msg

Place prepare-commit-msg into your .git/hooks/ folder. Don't forget to make your script executable eg. chmod +x prepare-commit-msg

This script will use the current branch name, presumably in the format b_12345 to pre-populate the first line of a commit message with B#12345.

Improvements

Could use pleasant-lawyer-cli to get the number regardless of naming scheme.

pre-commit

Place pre-commit into your .git/hooks/ folder. Don't forget to make your script executable eg. chmod +x prepare-commit-msg

This script will prevent you from committing forbidden keywords eg. binding.pry.

Improvements

Could also require that any TODO has a bug number associated with it.