Captainhook Versions Save

CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze.

5.23.0

1 month ago

Changes

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

Full Changelog: https://github.com/captainhookphp/captainhook/compare/5.23.0...5.23.0

5.22.2

1 month ago

Changes

  • issue #242 - Prevent PHPScoper from replacing action namespaces
  • Remove completion commands
  • Cleanup line handling

Full Changelog: https://github.com/captainhookphp/captainhook/compare/5.22.1...5.22.2

5.22.1

2 months ago

Changes

  • Add --only-disabled option to uninstall command

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

5.22.0

2 months ago

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.

5.21.2

3 months ago

Changes

  • Fix double '..' revision range for {$BRANCH_FILES} placeholder

5.21.1

3 months ago

Changes

  • Allow skipping options for Branch\Files Condition

5.21.0

3 months ago

Changes

  • Revert reflog fallback for {$CHANGED_FILES} introduced in 5.20.0
  • Add new Branch\Files condition
  • Add new {$BRANCH_FILES} placeholder

5.20.2

3 months ago

Changes

  • Add conditions to check current branch by regex inspired by @Eydamos ;)
  • Add On and NotOn branch conditions

The Condition\OnBranch condition is now deprecated and should be replaced with Condition\Branch\On. Full list of Conditions can be found here

5.20.1

3 months ago

Changes

  • Add IntegrateBeforePush action
  • Add proper filter settings to not list deleted files
  • Properly check the detected ranges
  • Split debug action into Success and Failure

5.20.0

3 months ago

Changes

  • Refactor and optimize changeset discovery huge thanks to @Eydamos
  • Output executed cli command anyway in verbose mode
  • Fix branch extraction
  • Catch condition exceptions

🐛 Bugfixes

#233 #234