Releases: captainhook-git/captainhook
5.23.4
🐛 Bugfixes
- Fix typo that causes the condition to behave wrong
- Fix PHAR build - #252 - thanks to @omnicolor
5.23.4-alpha-2
Update Box to version 4
5.23.4-alpha-1
Try to fix PHAR autoloading issue The PHAR autoloader does not load the Symfony polyfill bootstrap files. That's why the PHAR is crashing if not intl extension is loaded. - Updated to latest Box version - Copied a hack from PHPStand
5.23.3
5.23.2
5.23.1
5.23.0
Changes
- Add WSL
run-modesupport (by Christoph Kappestein)
{
"config": {
"run": {
"mode": "wsl"
}
}
...
}Full Changelog: 5.23.0...5.23.0
5.22.2
Changes
- issue #242 - Prevent PHPScoper from replacing action namespaces
- Remove completion commands
- Cleanup line handling
Full Changelog: 5.22.1...5.22.2
5.22.1
Changes
- Add
--only-disabledoption touninstallcommand
Now captainhook uninstall --only-disabled can be used to remove disabled hooks.
5.22.0
Changes
- Convert hook stdIn to cmd option
- Add confirmation action
- Hook script compatibility check
- BlockFixupCommits action got some verbose output
⚠️ Attention ⚠️
This version contains a bigger change that requires to update the generated hook scripts.
This is necessary because the decision was made to convert the original hook stdIn to a cmd option --input to allow prompting the user for input for all hooks as long as a tty is available.
A new Action was added to ask users if they want to continue with the current git operation. The action uses event handler to make sure that users are only bothered to input something if the hook succeeds. Both options are optional and can be skipped.
{
"action": "\\CaptainHook\\App\\Hook\\UserInput\\AskConfirmation",
"options": {
"message": "Do you really want it? [yes|no]",
"default": true
},
"config": {
"label": "User confirmation!"
}
}
Short note: This action does not work in GUI tools like Sourcetree, or PHPStorm because they fail to forward the tty properly.
User input should be possible for all hooks now as long as you use run-mode shell (default) or docker. In run-mode php user input does not work for pre-push and post-rewrite because data can not be read from stdIn and tty at the same time and both hooks require stdIn data to work properly.