pixelfusion/git-hooks

This package is abandoned and no longer maintained. No replacement package was suggested.

Standard git hooks for Pixel Fusion projects

Installs: 166

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

0.1.0 2017-09-19 03:10 UTC

This package is not auto-updated.

Last update: 2019-09-09 22:48:26 UTC


README

With love by Pixel Fusion NZ Software License

This package provides a simple way to add git hooks to PHP projects that use composer.

Installation

Run composer require --dev 'pixelfusion/git-hooks'.

After the installation of the package, append the following code to your composer.json:

    "scripts": {
        "post-install-cmd": [
            "./vendor/pixelfusion/git-hooks/src/git-hooks.sh"
        ],
        "post-update-cmd": [
            "./vendor/pixelfusion/git-hooks/src/git-hooks.sh"
        ]
    }

Now, each time you install/update composer, git hooks will be updated.

Development

At the moment, we only fire pre-commit hooks, you can add more hooks if you want like: pre-push, prepare-commit-msg and so on.

See the example pre-commit.

Contributions

If you wish to notify us of a bug or want to have a new feature implemented, go to our Issues page. Do a search if yours has not been logged by someone else before creating a new issue.

GitHub has provided a handy guide on how to help out if you're new to contributing to open source projects.