Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
husky-pivotal
Advanced tools
Husky commands to check that commits are tied to Pivotal Tracker stories.
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.
Several hook commands are included with this package:
Hook | Command | Description |
---|---|---|
preparecommitmsg | hup-mkmsg | Looks for a story ID in the current branch name and then uses it to prefill commit messages with a [#____] format story reference. |
commitmsg | hup-ckmsg | Ensures that the commit message contains a [#____] format story reference; aborts the commit if not. |
precommit | hup-ckbranch | Ensures 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.
FAQs
Husky Git hooks for Pivotal Tracker.
The npm package husky-pivotal receives a total of 0 weekly downloads. As such, husky-pivotal popularity was classified as not popular.
We found that husky-pivotal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.