Socket
Socket
Sign inDemoInstall

husky-pivotal

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky-pivotal

Husky Git hooks for Pivotal Tracker.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Husky + Pivotal NPM Version Build Status

Husky commands to check that commits are tied to Pivotal Tracker stories.

Installation

npm install husky husky-pivotal --save-dev

Then add the hook commands to your project's package.json, via the "scripts" field:

"scripts": {
  "commitmsg": "hup-ckmsg",
  "precommit": "hup-ckbranch",
  "preparecommitmsg": "hup-mkmsg"
}

You can pick and choose the hook commands most appropriate to your project and preferences.

About the hooks

Several hook commands are included with this package:

HookCommandDescription
preparecommitmsghup-mkmsgLooks for a story ID in the current branch name and then uses it to prefill commit messages with a [#____] format story reference.
commitmsghup-ckmsgEnsures that the commit message contains a [#____] format story reference; aborts the commit if not.
precommithup-ckbranchEnsures that the current branch name contains a Pivotal Tracker story ID; aborts the commit if not.

You may not want to use every one of these commands: simply omit the ones you don't want from your npm scripts.

License

MIT

Keywords

FAQs

Package last updated on 09 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc