Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

perdoo/shortcut-iteration-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortcut Iteration Action

Create an iteration on Shortcut and assign stories that were recently marked as completed.

Inputs

shortcutToken

Required. Shortcut API auth token.

name

Required. Iteration name.

description

Required. Iteration description.

completedStateId

Required. Workflow state id for the completed state.

completedAfter

Required. Datetime when the stories were moved to the completed state

canCreateIfNoNewStories

Optional. Create the iteration even if there aren't any stories to assign to it.

Outputs

iteration-created

Was the iteration created.

url

Iteration URL.

Example usage

Firstly, add an event handler on Shortcut to move a story into the completed state when its branch gets merged into your main branch. Then use the below snippet to set up the action.

uses: perdoo/shortcut-iteration-action@v2.1.0
with:
  shortcutToken: ${{ secrets.SHORTCUT_TOKEN }}
  name: "v1.2.3"
  completedStateId: 123456789
  completedAfter: ${{ github.event.head_commit.timestamp }}

To get your completed workflow state id, use:

curl -X GET \
  -H "Content-Type: application/json" \
  -H "Shortcut-Token: $SHORTCUT_TOKEN" \
  -L "https://api.app.shortcut.com/api/v3/workflows"