Skip to content

poppinlp/husky-plugin-filter-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

husky-plugin-filter-push

A husky plugin to filter out empty push or delete remote branch push.

Installation

npm i -D husky husky-plugin-filter-push

This plugin won't install husky for you, you should install it by your self.

Usage

You could use this with your husky pre-push hook:

{
  "hooks": {
    "pre-push": "husky-plugin-filter-push --git $HUSKY_GIT_STDIN --command npm test"
  }
}

This will trigger npm test.

Options

There are 2 options for this CLI:

  • git: should always be $HUSKY_GIT_STDIN for husky >= 1.0.0 and $GIT_STDIN for old huksy.
  • command: use to run as pre-push hook.

About

A husky plugin to filter out empty push or delete remote branch push.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published