#branch #story #tracker #pivotal #command-line-tool #generate #name

bin+lib story-tracker-cli

CLI tool for generating story branch names and switching to them. Currently only supports Pivotal Tracker.

14 stable releases

2.0.13 Nov 5, 2024
2.0.12 Oct 28, 2024
2.0.8 Sep 16, 2024
2.0.6 Aug 27, 2024
1.0.0 Jul 20, 2024

#695 in Command line utilities

Download history 186/week @ 2024-07-27 125/week @ 2024-08-03 128/week @ 2024-08-10 159/week @ 2024-08-17 154/week @ 2024-08-24 90/week @ 2024-08-31 39/week @ 2024-09-07 145/week @ 2024-09-14 12/week @ 2024-09-21 156/week @ 2024-09-28 19/week @ 2024-10-05 157/week @ 2024-10-12 14/week @ 2024-10-19 136/week @ 2024-10-26 120/week @ 2024-11-02 12/week @ 2024-11-09

294 downloads per month

MIT license

44KB
862 lines

Story Tracker CLI

CLI tool for generating story branch names and switching to them. Currently only supports Pivotal Tracker.

Providers

Pivotal Tracker

You will need to grab the API token from your profile and set it to the environment variable PIVOTAL_TRACKER_TOKEN.

Commands

Copy the link of your story, the story's ID, or the branch's name. The following formats are currently supported:

Then use it like so in the following subcommands:

stb generate

stb generate https://www.pivotaltracker.com/story/show/12345678
stb gen https://www.pivotaltracker.com/story/show/12345678

Example

$ stb generate https://www.pivotaltracker.com/story/show/12345678
Getting story...
Generating branch name...
feature/story-name-#12345678

stb switch

stb switch https://www.pivotaltracker.com/story/show/12345678

Example

$ stb switch https://www.pivotaltracker.com/story/show/12345678
Fetching story 12345678...
Fetching remote branch origin/feature/story-name-#12345678...
Checking out branch master...
Pulling latest from master...
Creating branch feature/story-name-#12345678...

Additional Info

The statuses shown by the tool are sent to stderr, while only the branch name is sent to stdout. This means you can use this tool in combination with other commands like:

# Copy to clipboard
$ stb gen https://www.pivotaltracker.com/story/show/12345678 | pbcopy

Configuration

Environment Variables

PIVOTAL_TRACKER_TOKEN

This will need to reflect the token on your profile page, as seen in the Pivotal Tracker section.

Dependencies

~18–31MB
~519K SLoC