GithubHelp home page GithubHelp logo

exshortcut's Introduction

Shortcut CLI

Install

git clone [email protected]:JohnnyCurran/ExShortcut.git
cd ExShortcut
sudo ln -s `echo $PWD/shortcut` /usr/local/bin/shortcut
shortcut

Usage

Obtain your Shortcut token from https://app.shortcut.com/settings/account/api-tokens Set SHORTCUT_TOKEN as an env var:

export SHORTCUT_TOKEN=my_shortcut_token

(optional) If you'd like to default search (stories, epics) to a certain project, set SHORTCUT_PROJECT_NAME:

export SHORTCUT_PROJECT_NAME=my_project

(optional) If you know the project ID you want to work on, set SHORTCUT_PROJECT_ID

export SHORTCUT_PROJECT_ID=my_project_id

If you don't know your project ID, simply run:

shortcut projects

For a pretty-printed version (requires jq):

shortcut projects | jq '.[] | {name: .name, id: .id}'
shortcut  - commandline Shortcut API Integration
          - Operates on current story by default
          - Obtains current story ID from current git branch name
Usage:
new title [description]         Create new story with title and optional description
projects                        List all projects. Use with jq for pretty output, i.e. shorcut projects | jq '.[] | {name: .name, id: .id}'
whoami                          List info of the authenticated shortcut member from SHORTCUT_TOKEN
labels                          List labels and their attributes
label labelName                 Applies label 'labelName' to story from current branch
label storyId labelName         Applies label 'labelName' to story with id 'storyId'
storyid                         Returns the Story ID of the current branch you are working on
stories state                   Return stories with state 'state'. If SHORTCUT_PROJECT_NAME is set, only stories from that project will be returned
                                  Example: shortcut stories 'merged' | jq '.stories.data | .[] | .app_url'

Examples

Create Story

shortcut new 'my story' 'my description'

View all labels

shortcut labels

Set a label on a story

shortcut label 12345 bugfix

Github integration

If you use the suggested shortcut branch names for github integration, Shortcut will automatically read the story ID from the current branch name.

For example, to label your current story with bugfix, simply:

shortcut label bugfix

exshortcut's People

Watchers

James Cloos avatar John Curran avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.