Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 6b61ae7

Browse files
committed
checking store
1 parent 189aba9 commit 6b61ae7

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

config.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ before:
1919
title: Start here!
2020
body: 00_welcome-issue.md
2121
store:
22-
welcomeIssueUrl: "%payload.issue.html_url%"
23-
welcomeIssueNumber: "%payload.issue.number%"
22+
welcomeIssueUrl: "%result.data.html_url%"
23+
welcomeIssueNumber: "%result.data.number%"
24+
createIssueResult: "%result%"
2425
data:
2526
quicklink: "%payload.repository.html_url%/new/master?filename=.github/workflows/my-workflow.yml"
2627
actionsUrl: "%payload.repository.html_url%/actions/new"
2728
comments:
2829
- 00_explain-gh-script.md
2930
- 00_octokit-comparison.md
3031
- 00_welcome-activity.md
32+
- e-result.md
3133
# - type: respond
3234
# with: 00_explain-gh-script.md
3335
# issue: "%actions.welcomeIssue.data.number%"
@@ -49,16 +51,6 @@ steps:
4951
- pull_request.edited
5052
link: "{{store.welcomeIssueUrl}}"
5153
actions:
52-
# - type: gate
53-
# gates:
54-
# # if the payload action is 'opened' OR 'edited'
55-
# - left: "%payload.action%"
56-
# operator: ===
57-
# right: opened
58-
# - left: "%payload.action%"
59-
# operator: ===
60-
# right: edited
61-
# # AND the pull request title equals 'Create my-workflow.yml'
6254
- type: gate
6355
left: "%payload.pull_request.title%"
6456
operator: ===
@@ -112,8 +104,8 @@ steps:
112104
body: 01_merge-workflow.md
113105
event: APPROVE
114106
store:
115-
firstPullUrl: "%payload.pull_request.html_url%"
116-
firstPullNumber: "%payload.pull_request.number%"
107+
firstPullUrl: "%result.data.html_url%"
108+
firstPullNumber: "%result.data.number%"
117109
data:
118110
actionsUrl: "%payload.repository.html_url%/actions"
119111

@@ -127,8 +119,8 @@ steps:
127119
body: 02_workflow-triggered.md
128120
action_id: triggerIssue
129121
store:
130-
secondIssueNumber: "%payload.issue.number%"
131-
secondIssueUrl: "%payload.issue.html_url%"
122+
secondIssueNumber: "%result.data.number%"
123+
secondIssueUrl: "%result.data.html_url%"
132124
- type: respond
133125
with: new-issue.md
134126
issue: "%store.firstPullNumber%"
@@ -232,8 +224,8 @@ steps:
232224
body: 04_merge-workflow.md
233225
event: APPROVE
234226
store:
235-
secondPullNumber: "%payload.pull_request.number%"
236-
secondPullUrl: "%payload.pull_request.html_url%"
227+
secondPullNumber: "%result.data.number%"
228+
secondPullUrl: "%result.data.html_url%"
237229
data:
238230
actionsUrl: "%payload.repository.html_url%/actions"
239231

@@ -247,8 +239,8 @@ steps:
247239
body: 05_workflow-triggered.md
248240
action_id: triggerIssue
249241
store:
250-
thirdIssueUrl: "%payload.issue.html_url%"
251-
thirdIssueNumber: "%payload.issue.number%"
242+
thirdIssueUrl: "%result.data.html_url%"
243+
thirdIssueNumber: "%result.data.number%"
252244
- type: respond
253245
with: new-issue.md
254246
issue: "{{store.secondPullNumber}}"

responses/e-result.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# store result contents
2+
3+
{{store.createIssueResult}}

0 commit comments

Comments
 (0)