Skip to content

Releases: captainhookphp/captainhook

2.0.2

20 Apr 23:39
Compare
Choose a tag to compare

Print whole commit message on validation error

2.0.1

20 Apr 22:02
Compare
Choose a tag to compare

Print the commit message on BEAMS rules failure, thanks to @PurpleBooth

2.0.0

01 Feb 11:51
Compare
Choose a tag to compare

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

14 Jan 21:41
Compare
Choose a tag to compare

Fix copy paste bug

Thanks to @iquito

1.2.0

20 Sep 11:45
Compare
Choose a tag to compare
  • 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

20 Sep 10:27
Compare
Choose a tag to compare
  • Add "removed" to imperative blacklist

1.1.0

13 Sep 15:13
Compare
Choose a tag to compare
  • Add new php lint action to perform a php syntax check
  • Enhance some error messages

1.0.4

12 Sep 14:56
Compare
Choose a tag to compare

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

08 Sep 18:20
Compare
Choose a tag to compare

Add some basic config validation

1.0.2

08 Sep 14:42
Compare
Choose a tag to compare

Validate configured action options