Releases: captainhookphp/captainhook
Releases · captainhookphp/captainhook
2.0.2
Print whole commit message on validation error
2.0.1
Print the commit message on BEAMS rules failure, thanks to @PurpleBooth
2.0.0
Warning: CaptainHook version 2 requires PHP 7.0.0 or higher
After upgrading you have to re install your hooks with
vendor/bin/captainhook install -f
- Namespace cleanup
sebastianfeldmann\
=>SebastianFeldmann\*
- Moved all cli execution related code to a separate package sebastianfeldmann/cli
- Moved all git command related code to a separate package sebastianfeldmann/git
- Removed the symfony/process dependency
1.2.1
1.2.0
- Add UnitTest Code Coverage action
- Add possibility to execute static methods without any interface implementation
Example "Test Coverage"
{
"action": "\\sebastianfeldmann\\CaptainHook\\Hook\\PHP\\Action\\TestCoverage",
"options": {
"cloverXml": "build/logs/clover.xml"
}
}
Example "Static Method Execution"
{
"action": "\\MyName\\Foo::bar"
}
1.1.1
- Add "removed" to imperative blacklist
1.1.0
- Add new php lint action to perform a php syntax check
- Enhance some error messages
1.0.4
Fix issue #1
If your application is in a sub directory of your repository you can now run f.e.
$ vendor/bin/captainhook install --git-directory=../.git
This way captainhook knows where to install the hook scripts and can use the correct paths to your composer autoloader and your configuration file
1.0.3
Add some basic config validation
1.0.2
Validate configured action options