Crates.io | story-tracker-cli |
lib.rs | story-tracker-cli |
version | 2.0.13 |
source | src |
created_at | 2024-07-20 22:23:40.453797 |
updated_at | 2024-11-05 15:08:56.863871 |
description | CLI tool for generating story branch names and switching to them. Currently only supports Pivotal Tracker. |
homepage | |
repository | https://github.com/jondpenton/story-tracker-cli/tree/master/crates/story-tracker-cli |
max_upload_size | |
id | 1309929 |
size | 61,813 |
CLI tool for generating story branch names and switching to them. Currently only supports Pivotal Tracker.
You will need to grab the API token from your profile and set it to the environment variable PIVOTAL_TRACKER_TOKEN
.
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 https://www.pivotaltracker.com/story/show/12345678
stb gen https://www.pivotaltracker.com/story/show/12345678
$ stb generate https://www.pivotaltracker.com/story/show/12345678
Getting story...
Generating branch name...
feature/story-name-#12345678
stb switch https://www.pivotaltracker.com/story/show/12345678
$ 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...
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
PIVOTAL_TRACKER_TOKEN
This will need to reflect the token on your profile page, as seen in the Pivotal Tracker section.