@@ -89,17 +89,16 @@ steps:
89
89
fileName : my-workflow.yml
90
90
# End filepath verification
91
91
# ######################################################
92
- - type : removeBranchProtection
93
92
- type : respond
94
93
issue : Start here!
95
94
with : new-pull-request.md
96
95
data :
97
96
pullUrl : " %payload.pull_request.html_url%"
98
97
- type : closeIssue
99
98
issue : Start here!
100
-
101
- - type : respond
102
- with : 01_merge-workflow.md
99
+ - type : createReview
100
+ body : 01_merge-workflow.md
101
+ event : APPROVE
103
102
data :
104
103
actionsUrl : " %payload.repository.html_url%/actions"
105
104
@@ -108,7 +107,6 @@ steps:
108
107
event : pull_request.closed
109
108
link : " {{ repoUrl }}/pull/2"
110
109
actions :
111
- - type : updateBranchProtection
112
110
- type : createIssue
113
111
title : Create an issue comment with GitHub Script
114
112
body : 02_workflow-triggered.md
@@ -212,16 +210,16 @@ steps:
212
210
fileName : my-workflow.yml
213
211
# End filepath verification
214
212
# ######################################################
215
- - type : removeBranchProtection
216
213
- type : respond
217
214
issue : 3
218
215
with : new-pull-request.md
219
216
data :
220
217
pullUrl : " %payload.pull_request.html_url%"
221
218
- type : closeIssue
222
219
issue : 3
223
- - type : respond
224
- with : 04_merge-workflow.md
220
+ - type : createReview
221
+ body : 04_merge-workflow.md
222
+ event : APPROVE
225
223
data :
226
224
actionsUrl : " %payload.repository.html_url%/actions"
227
225
@@ -230,7 +228,6 @@ steps:
230
228
event : pull_request.closed
231
229
link : " {{ repoUrl }}/issues/5"
232
230
actions :
233
- - type : updateBranchProtection
234
231
- type : createIssue
235
232
title : Create an issue comment with GitHub Script
236
233
body : 05_workflow-triggered.md
@@ -294,6 +291,13 @@ steps:
294
291
method : projects.listColumns
295
292
project_id : " %actions.projectBoard.data.0.id%"
296
293
action_id : listColumns
294
+ - type : respond
295
+ issue : 5
296
+ with : new-pull-request.md
297
+ data :
298
+ pullUrl : " %payload.pull_request.html_url%"
299
+ - type : closeIssue
300
+ issue : 5
297
301
- type : respond
298
302
with : 07_explain-node.md
299
303
- type : respond
@@ -307,9 +311,9 @@ steps:
307
311
event : pull_request.synchronize
308
312
link : " {{repoUrl}}/pull/6"
309
313
actions :
310
- - type : removeBranchProtection
311
- - type : respond
312
- with : 08_merge-workflow.md
314
+ - type : createReview
315
+ body : 08_merge-workflow.md
316
+ event : APPROVE
313
317
314
318
- title : See workflow results
315
319
description : See the results of the final workflow run
@@ -363,3 +367,4 @@ steps:
363
367
- type : respond
364
368
with : 10_course-recap.md
365
369
issue : 8
370
+ - type : removeBranchProtection
0 commit comments