Releases: captainhookphp/captainhook
Releases · captainhookphp/captainhook
5.15.0
Changes
- Update PHP version to 7.4
- Add
pre-push
condition to check for changed files of type - Remove php 7.3 build
- BUGFIX: Make sure you can 'get' the stdIn multiple times
5.14.4
5.14.3
Changes
- BUGFIX - The block fixup commit action does not fail anymore if remote and local repo are at the same state
5.14.2
Changes
- Display error messages of allowed errors
5.14.1
Changes
- Fix settings - config mixup
5.14.0
Changes
Add allow-failure setting to config and actions
You can now define the default failure behavior for your Actions
in your global settings section. With this you can allow actions to fail and execute the git command anyway.
{
"config": {
"allow-failure": true
}
"pre-commit": {
You can also overwrite the setting for specific Actions
by using the new action settings.
{
"pre-commit": {
"is-enabled": true,
"actions": [
{
"action": "ls -lisa",
"config": {"allow-failure": true}
}
]
}
In the future we might add new settings like execute-async
or something similar.
5.13.0
Changes
- Add custom settings feature
You can now set custom settings in your Captain Hook configuration.
{
"config": {
"custom": {
"foo": "bar"
}
}
}
You can access the custom settings with Config::getCustomSettings(): array
or you can use them to replace values in your configuration file with {$CONFIG|value-of:custom>>foo}
that in this example will be replaced with bar
.
5.12.0
Changes
- Fix some PHAR issues
5.11.2
Changes
- Allow hooks to be skipped due to env variable
- Minor fixes and improvements (thanks to Coroliov Oleg)
5.11.1
Changes
- Prevent installation of virtual hooks
- Use binary-only images for installing Composer (by Grzegorz Korba)