This command takes a story ID and connects to the API using your token and gets the story with that ID, determines the type and title of the story.
After it has gathered that, it slugifies the title and creates a branch in the format of {type}/{id}-{title}
so for example:
❯ git clubhouse 82
Switched to a new branch 'feature/82-login-my-account-menu-item'
All you have to do is create a token for the org you're in, save git-clubhouse
into your $PATH
and make it executable with chmod +x git-clubhouse
then setup a token in .gitconfig
by running:
git config --global clubhouse.token {token}
Now just run git clubhouse {id}
and watch your branch be created.
This depends on jq being installed.