Skip to content

Releases: captainhook-git/captainhook

5.23.4

22 Aug 08:08
5.23.4
53cdd84

Choose a tag to compare

🐛 Bugfixes

  • Fix typo that causes the condition to behave wrong
  • Fix PHAR build - #252 - thanks to @omnicolor

5.23.4-alpha-2

21 Aug 15:14
e9e9d13

Choose a tag to compare

5.23.4-alpha-2 Pre-release
Pre-release

Update Box to version 4

5.23.4-alpha-1

20 Aug 09:27
fe4c5b6

Choose a tag to compare

5.23.4-alpha-1 Pre-release
Pre-release
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

07 Jul 19:16
5.23.3
c9deaef

Choose a tag to compare

Changes

  • Use the new bootstrap utility - finally fix issue #248
  • Add new bootstrap util

5.23.2

07 Jul 16:56
5.23.2
388f81b

Choose a tag to compare

Changes

  • Prevent PHAR from crashing unnecessarily - fix issue #248

5.23.1

18 Jun 22:20
5.23.1
dcadeb2

Choose a tag to compare

Changes

  • Fix input quoting for docker mode #250
  • Only read stdIn if necessary
  • Do not fail PHAR without bootstrap #248

5.23.0

12 Apr 10:55
5.23.0
08d90e4

Choose a tag to compare

Changes

  • Add WSL run-mode support (by Christoph Kappestein)
{
  "config": {
    "run": {
      "mode": "wsl"
    }
  }
  ...
}

Full Changelog: 5.23.0...5.23.0

5.22.2

05 Apr 11:30
5.22.2
6c519d1

Choose a tag to compare

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

06 Mar 13:19
5.22.1
dbd4dd6

Choose a tag to compare

Changes

  • Add --only-disabled option to uninstall command

Now captainhook uninstall --only-disabled can be used to remove disabled hooks.

5.22.0

06 Mar 11:05
5.22.0
9185d04

Choose a tag to compare

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.