forked from Grayscale-Labs/create-linked-shortcut-story
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
58 lines (58 loc) · 2.27 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Create Linked Shortcut Story
author: David Baumgold <[email protected]>
description: >-
When a pull request is opened, create a linked story on Shortcut
if the description does not already link to one.
inputs:
github-token:
description: API token for GitHub. Can be passed in using {{ secrets.GITHUB_TOKEN }}
required: true
shortcut-token:
description: API token for Shortcut.com
required: true
project-name:
description: The name of the Shortcut.com project to create stories in
required: true
team-name:
description: The name of the Shortcut team to assign to the new story.
opened-state-name:
description: The name of the workflow state for Shortcut stories when a pull request is created.
closed-state-name:
description: The name of the workflow state for Shortcut stories when a pull request is closed.
required: true
merged-state-name:
description: The name of the workflow state for Shortcut stories when a pull request is merged.
required: true
comment-template:
description: >-
A Mustache template for the comment posted on a pull request, after the
Shortcut story is successfully created. The template is populated
with a `story` variable.
default: "Shortcut story: {{{ story.app_url }}}"
story-title-template:
description: >-
A Mustache template used for the story title in Shortcut. The template is populated with a
`payload` variable.
default: "{{{ payload.pull_request.title }}}"
story-description-template:
description: >-
A Mustache template used for the story description in Shortcut. The template is populated with a
`payload` variable.
default: "{{{ payload.pull_request.body }}}"
only-users:
description: Comma-separated list of specific GitHub users to create Shortcut stories for.
ignored-users:
description: Comma-separated list of GitHub users to ignore. Often used for bots.
user-map:
description: Map GitHub usernames to Shortcut UUIDs
label-iteration-group-map:
description: Map GitHub labels to a Shortcut Group to pull Iterations for linking from
outputs:
story-id:
description: The ID of the associated story on Shortcut
runs:
using: node12
main: dist/index.js
branding:
icon: git-pull-request
color: blue