Create an iteration on Shortcut and assign stories that were recently marked as completed.
Required. Shortcut API auth token.
Required. Iteration name.
Required. Iteration description.
Required. Workflow state id for the completed state.
Required. Datetime when the stories were moved to the completed state
Optional. Create the iteration even if there aren't any stories to assign to it.
Was the iteration created.
Iteration URL.
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"