pivotal_prepare_commit

A simple git hook script that pre-populates your commit messages with the details of a story started in Pivotal Tracker.

Usage no npm install needed!

<script type="module">
  import pivotalPrepareCommit from 'https://cdn.skypack.dev/pivotal_prepare_commit';
</script>

README

Pivotal tracker prepare commit

A simple git hook script that pre-populates your commit messages with the details of a story started in Pivotal Tracker.

Install

  1. Clone the repository

  2. npm install on the project

  3. Run the build step npm run build

Setup the necessary environment variables:

export PIVOTAL_TOKEN=""
export PIVOTAL_PROJECTID=""
export PIVOTAL_INITIALS=""

Installing a hook

You'll need to symlink the git's pre commit message file in .git/hooks/prepare-commit-msg to the prepare-commit-msg.js file in this project.