@@ -202,7 +202,7 @@ steps:
202202 event : pull_request.synchronize
203203 actions :
204204 - type : respond
205- with : respond-to-pr .md
205+ with : validate .md
206206 - type : octokit
207207 method : pullRequests.createComment
208208 owner : ' %payload.repository.owner.login%'
@@ -212,17 +212,17 @@ steps:
212212 path : config.yml
213213 body : |
214214 ```suggestion
215- event: pull_request.opened
215+ - type: gate
216216 ```
217217 position : 35
218218
219219# 9
220- - title : Respond to a learner's pull request
221- description : Respond to a learner's pull request
220+ - title : Validate a learner's PR
221+ description : Validate a learner's PR
222222 event : pull_request.synchronize
223223 actions :
224224 - type : respond
225- with : validate .md
225+ with : add-context .md
226226 - type : octokit
227227 method : pullRequests.createComment
228228 owner : ' %payload.repository.owner.login%'
@@ -232,17 +232,9 @@ steps:
232232 path : config.yml
233233 body : |
234234 ```suggestion
235- - type: gate
235+ left: '%payload.pull_request.title%'
236236 ```
237- position : 40
238-
239- # 10
240- - title : Validate a learner's pull request
241- description : Validate a learner's pull request
242- event : pull_request.synchronize
243- actions :
244- - type : respond
245- with : add-context.md
237+ position : 41
246238 - type : octokit
247239 method : pullRequests.createComment
248240 owner : ' %payload.repository.owner.login%'
@@ -252,9 +244,9 @@ steps:
252244 path : config.yml
253245 body : |
254246 ```suggestion
255- left: '%payload.pull_request.title%'
247+ operator: ===
256248 ```
257- position : 41
249+ position : 42
258250 - type : octokit
259251 method : pullRequests.createComment
260252 owner : ' %payload.repository.owner.login%'
@@ -264,9 +256,17 @@ steps:
264256 path : config.yml
265257 body : |
266258 ```suggestion
267- operator: ===
259+ right: Add name to README
268260 ```
269- position : 42
261+ position : 43
262+
263+ # 10
264+ - title : Pass contextual information to a response
265+ description : Pass contextual information to a response
266+ event : pull_request.synchronize
267+ actions :
268+ - type : respond
269+ with : respond-to-pr.md
270270 - type : octokit
271271 method : pullRequests.createComment
272272 owner : ' %payload.repository.owner.login%'
@@ -276,11 +276,29 @@ steps:
276276 path : config.yml
277277 body : |
278278 ```suggestion
279- right: Add name to README
279+ - type: respond
280280 ```
281- position : 43
281+ position : 45
282+ - type : octokit
283+ method : pullRequests.createComment
284+ owner : ' %payload.repository.owner.login%'
285+ repo : ' %payload.repository.name%'
286+ number : ' %payload.number%'
287+ commit_id : ' %payload.pull_request.head.sha%'
288+ path : config.yml
289+ body : |
290+ ```suggestion
291+ with: pr-opened.md
292+ ```
293+ position : 46
294+
295+ # 10
296+ # - title: Respond to a learner's PR
297+ # description: Respond to a learner's PR
298+ # event: pull_request.synchronize
299+ # actions:
300+
282301
283- # 11. Pass contextual information to a response
284302# 12. Add some descriptions to your course
285303# 13. Add a README to your course
286304# 14. Deploy your course to the sandbox
0 commit comments