Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.12 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.12 KB

WPEverest Git Hooks

Collection of WPEverest core git hooks.

Installation

composer require wpeverest/wpeverest-git-hooks

Usage

Include the follow lines into the project's composer.json:

    "scripts": {
        "pre-update-cmd": "WPEverest\\GitHooks\\Hooks::preHooks",
        "pre-install-cmd": "WPEverest\\GitHooks\\Hooks::preHooks",
        "post-update-cmd": "WPEverest\\GitHooks\\Hooks::postHooks",
        "post-install-cmd": "WPEverest\\GitHooks\\Hooks::postHooks"
    }

Manual setup (optional)

By default should already run all commands from composer scripts when installed, but if necessary run it manually is possible with the follow commands:

composer run-script pre-update-cmd
composer run-script post-update-cmd

Release history

  • 2017-12-18 - 1.0.2 - Auto detects phpcs.xml or phpcs.xml.dist by default. No longer accepts phpcs.ruleset.xml.
  • 2017-11-10 - 1.0.1 - Removed list of ignored directories.
  • 2017-10-03 - 1.0.0 - Initial release.

Sources

Inspired by: