3434- title : Give your course a title
3535 description : Give your course a title
3636 event : pull_request.synchronize
37+ link : ' {{ repoUrl }}/pull/1'
3738 actions :
3839 - type : getFileContents
3940 action_id : fileContents
@@ -169,20 +170,42 @@ steps:
169170 else :
170171 - type : respond
171172 with : 04.1_e-no-name.md
173+ - type : requestReviewFromRegistrant
172174 - type : respond
173- with : 04.0_create-issue.md
175+ with : approve-second-pr.md
176+
177+ - title : Approve the repo setup
178+ description : Approve the repo setup
179+ event : pull_request_review.submitted
180+ actions :
181+ - type : gate
182+ left : ' %payload.review.state%'
183+ operator : ===
184+ right : approved
185+ - type : mergePullRequest
186+ - type : createPullRequest
187+ title : Write the course steps
188+ body : 04.0_create-issue.md
189+ head : write-steps
190+ action_id : stepsPR
191+ - type : respond
192+ with : goto-steps-pr.md
193+ data :
194+ url : ' %actions.stepsPR.data.html_url%'
195+ - type : assignRegistrant
196+ issue : ' %actions.stepsPR.data.number%'
174197 - type : octokit
175198 method : pullRequests.createComment
176- owner : ' %payload.repository .owner.login%'
177- repo : ' %payload.repository .name%'
178- number : ' %payload .number%'
179- commit_id : ' %payload.pull_request .head.sha%'
199+ owner : ' %actions.stepsPR.data.head.repo .owner.login%'
200+ repo : ' %actions.stepsPR.data.head.repo .name%'
201+ number : ' %actions.stepsPR.data .number%'
202+ commit_id : ' %actions.stepsPR.data .head.sha%'
180203 path : config.yml
181204 body : |
182205 ```suggestion
183206 - type: createIssue
184207 ```
185- position : 22
208+ position : 7
186209 - type : octokit
187210 method : pullRequests.createComment
188211 owner : ' %payload.repository.owner.login%'
@@ -194,7 +217,7 @@ steps:
194217 ```suggestion
195218 title: Welcome
196219 ```
197- position : 23
220+ position : 8
198221 - type : octokit
199222 method : pullRequests.createComment
200223 owner : ' %payload.repository.owner.login%'
@@ -206,7 +229,7 @@ steps:
206229 ```suggestion
207230 body: welcome-text.md
208231 ```
209- position : 24
232+ position : 9
210233
211234# 5
212235- title : Create an issue using Learning Lab
@@ -267,7 +290,7 @@ steps:
267290 ```suggestion
268291 - title: Create a new PR
269292 ```
270- position : 33
293+ position : 19
271294 - type : octokit
272295 method : pullRequests.createComment
273296 owner : ' %payload.repository.owner.login%'
@@ -279,7 +302,7 @@ steps:
279302 ```suggestion
280303 description: Add your name to the README.md file in your new PR
281304 ```
282- position : 34
305+ position : 20
283306
284307# 7
285308- title : Name your first step and give it a description
@@ -309,7 +332,7 @@ steps:
309332 ```suggestion
310333 event: pull_request.opened
311334 ```
312- position : 35
335+ position : 21
313336
314337# 8
315338- title : Trigger your first step with a GitHub event
@@ -339,7 +362,7 @@ steps:
339362 ```suggestion
340363 - type: gate
341364 ```
342- position : 40
365+ position : 32
343366
344367# 9
345368- title : Validate a learner's PR
@@ -369,7 +392,7 @@ steps:
369392 ```suggestion
370393 left: # replace me actual symbols and no spaces: 'percent payload.pull_request.title percent'
371394 ```
372- position : 41
395+ position : 33
373396 - type : octokit
374397 method : pullRequests.createComment
375398 owner : ' %payload.repository.owner.login%'
@@ -381,7 +404,7 @@ steps:
381404 ```suggestion
382405 operator: ===
383406 ```
384- position : 42
407+ position : 34
385408 - type : octokit
386409 method : pullRequests.createComment
387410 owner : ' %payload.repository.owner.login%'
@@ -393,7 +416,7 @@ steps:
393416 ```suggestion
394417 right: Add name to README
395418 ```
396- position : 43
419+ position : 35
397420
398421# 10
399422- title : Use contextual information to validate
@@ -425,7 +448,7 @@ steps:
425448 ```suggestion
426449 - type: respond
427450 ```
428- position : 45
451+ position : 37
429452 - type : octokit
430453 method : pullRequests.createComment
431454 owner : ' %payload.repository.owner.login%'
@@ -437,7 +460,7 @@ steps:
437460 ```suggestion
438461 with: pr-opened.md
439462 ```
440- position : 46
463+ position : 38
441464
442465# 11
443466- title : Respond to a learner's successful PR
0 commit comments