Skip to content

Commit

Permalink
update readme (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Pickett <dpickett@users.noreply.github.com>
  • Loading branch information
mvserna and dpickett committed Feb 5, 2024
1 parent 44fa042 commit 8a6b10b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# marked-stories

**A node CLI utility to import a markdown document of user stories into Shortcut**

## Setup

- Clone this repo
- `yarn install`

At LaunchWare, we use [`asdf`](https://github.com/asdf-vm/asdf) as our version manager, so a `.tool-versions` is included.

## Usage
```bash
[env_vars] /bin/marked-stories push [file]
```

For example,
```bash
SHORTCUT_TEAM_ID=[teamId] SHORTCUT_TOKEN=[token] SHORTCUT_WORKFLOW_STATE_ID=[stateId] bin/marked-stories push path/to/file.md
```

Three env variables are required to import user stories into Shortcut:

- `SHORTCUT_TEAM_ID`
- In Shortcut, under `Settings > Teams`, click the team
- Then, find the `teamId` in the url: `/settings/teams/{teamId}?{queryParams}`
- `SHORTCUT_TOKEN`
- In Shortcut, under `Settings > API Tokens`, generate an API token
- `SHORTCUT_WORKFLOW_STATE_ID`
- In Shortcut, under `Settings > Workflow States`, click the desired default State
- Then, find the `stateId` prepopulated in the search bar: `state:{stateId}`

## Formatting Requirements
In the source markdown file, each user story must begin with a title formatted as an `h3`.

```markdown
### My First User Story

...

### My Second User Story

...
```
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "marked-clubhouse",
"name": "marked-stories",
"version": "0.0.1",
"description": "a markdown importer for clubhouse",
"description": "a markdown importer for shortcut",
"main": "index.js",
"bin": {
"marked-stories": "./bin/marked-stories"
},
"repository": "https://github.com/launchacademy/marked-clubhouse",
"repository": "https://github.com/launchware/marked-stories",
"author": "Dan Pickett",
"license": "MIT",
"private": false,
Expand Down Expand Up @@ -43,4 +43,4 @@
"test": "jest",
"test:coverage": "jest --coverage"
}
}
}

0 comments on commit 8a6b10b

Please sign in to comment.