git-hook-scripts
v1.0.1
Published
> Collection of Git hook scripts
Downloads
4
Readme
git-hook-scripts
Collection of Git hook scripts
Available scripts
check-issue-nr-in-commit-msg
- checks if commit message has an Issue number marked downnpm-install-after-merge
- callsnpm install
ifpackage.json
orbower.json
has been changed after merge
Installation
Install npm and use it to install git-hook-scripts
$ npm install --save-dev git-hook-scripts
Usage
In JavaScript
var scripts = require('git-hook-scripts');
scripts.npmInstallAfterMerge();
scripts.checkIssueNrInCommitMsg();
CLI
Usage: ./node_modules/.bin/git-hook-scripts [options] [command]
Commands:
check-issue-nr-in-commit-msg|issue-nr Checks if commit message has an Issue number marked down
npm-install-after-merge|install Calls npm install if package.json or bower.json has been changed after merge
Contribute
- Implement a Git hook script,
- move the script to
./src
, - write the command to
./git-hook-scripts
(more info about commander.js) and - make a pull request.