npm install --save pivotal-deliver-cli
Script to deliver finished Pivotal Tracker stories in a commit range.
Uses https://github.com/Wizcorp/node-pivotal to connect with the Pivotal API (v3, which is old, but sufficient).
Intended to be run with a deployment tool (which is aware of the Git SHA of each build), as a final step after deploying code.
Run with the following set on the environment:
PIVOTAL_TOKEN
PIVOTAL_PROJECT_ID
CURRENT_COMMIT
- SHA indicating end of commit rangePREVIOUS_COMMIT
- SHA indicating beginning of commit range.
./node_modules/.bin/pivotal_deliver
Script will:
- Parse story IDs from the commit log in the given range.
- Find corresponding Finished stories in the given Pivotal project.
- Set those stories to Delivered, and add a comment.
- Report to stdout.