Skip to content

team-taniwha/misc-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Bits of scripts that didn't fit anywhere else

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published