@@ -89,17 +89,16 @@ steps:
8989 fileName : my-workflow.yml
9090 # End filepath verification
9191 # ######################################################
92- - type : removeBranchProtection
9392 - type : respond
9493 issue : Start here!
9594 with : new-pull-request.md
9695 data :
9796 pullUrl : " %payload.pull_request.html_url%"
9897 - type : closeIssue
9998 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
103102 data :
104103 actionsUrl : " %payload.repository.html_url%/actions"
105104
@@ -108,7 +107,6 @@ steps:
108107 event : pull_request.closed
109108 link : " {{ repoUrl }}/pull/2"
110109 actions :
111- - type : updateBranchProtection
112110 - type : createIssue
113111 title : Create an issue comment with GitHub Script
114112 body : 02_workflow-triggered.md
@@ -212,16 +210,16 @@ steps:
212210 fileName : my-workflow.yml
213211 # End filepath verification
214212 # ######################################################
215- - type : removeBranchProtection
216213 - type : respond
217214 issue : 3
218215 with : new-pull-request.md
219216 data :
220217 pullUrl : " %payload.pull_request.html_url%"
221218 - type : closeIssue
222219 issue : 3
223- - type : respond
224- with : 04_merge-workflow.md
220+ - type : createReview
221+ body : 04_merge-workflow.md
222+ event : APPROVE
225223 data :
226224 actionsUrl : " %payload.repository.html_url%/actions"
227225
@@ -230,7 +228,6 @@ steps:
230228 event : pull_request.closed
231229 link : " {{ repoUrl }}/issues/5"
232230 actions :
233- - type : updateBranchProtection
234231 - type : createIssue
235232 title : Create an issue comment with GitHub Script
236233 body : 05_workflow-triggered.md
@@ -294,6 +291,13 @@ steps:
294291 method : projects.listColumns
295292 project_id : " %actions.projectBoard.data.0.id%"
296293 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
297301 - type : respond
298302 with : 07_explain-node.md
299303 - type : respond
@@ -307,9 +311,9 @@ steps:
307311 event : pull_request.synchronize
308312 link : " {{repoUrl}}/pull/6"
309313 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
313317
314318 - title : See workflow results
315319 description : See the results of the final workflow run
@@ -363,3 +367,4 @@ steps:
363367 - type : respond
364368 with : 10_course-recap.md
365369 issue : 8
370+ - type : removeBranchProtection
0 commit comments