Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

plhw/hf-git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HF Git Hooks

Tool to automaticly installs hooks for repository in your ./.git/hooks path.

Currently we have a pre-push hook that does the following;

  • Checks for a valid composer.json and composer.lock.
  • Check code style

INSTALLATION

composer require plhw/hf-git-hooks --dev as a composer dependency.

Configuration

Add the following to your composer.json file.

"scripts": {
   	"pre-update-cmd": "HF\\GitHooks\\Installer::preHooks",
   	"pre-install-cmd": "HF\\GitHooks\\Installer::preHooks",
	"post-update-cmd": "HF\\GitHooks\\Installer::postHooks",
	"post-install-cmd": "HF\\GitHooks\\Installer::postHooks"
}