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

Commit 77138c6

Browse files
committed
finish up steps
1 parent 0b1fea3 commit 77138c6

7 files changed

Lines changed: 81 additions & 21 deletions

File tree

config.yml

Lines changed: 58 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ steps:
214214
```suggestion
215215
- type: gate
216216
```
217-
position: 35
217+
position: 40
218218

219219
# 9
220220
- title: Validate a learner's PR
@@ -261,12 +261,12 @@ steps:
261261
position: 43
262262

263263
# 10
264-
- title: Pass contextual information to a response
265-
description: Pass contextual information to a response
264+
- title: Use contextual information to validate
265+
description: Use contextual information to validate
266266
event: pull_request.synchronize
267267
actions:
268268
- type: respond
269-
with: respond-to-pr.md
269+
with: respond-success.md
270270
- type: octokit
271271
method: pullRequests.createComment
272272
owner: '%payload.repository.owner.login%'
@@ -292,13 +292,59 @@ steps:
292292
```
293293
position: 46
294294

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:
295+
# 11
296+
- title: Respond to a learner's successful PR
297+
description: Respond to a learner's successful PR
298+
event: pull_request.synchronize
299+
actions:
300+
- type: respond
301+
with: add-descriptions.md
302+
- type: octokit
303+
method: pullRequests.createComment
304+
owner: '%payload.repository.owner.login%'
305+
repo: '%payload.repository.name%'
306+
number: '%payload.number%'
307+
commit_id: '%payload.pull_request.head.sha%'
308+
path: config.yml
309+
body: |
310+
```suggestion
311+
- tagline: Learn how to open a PR
312+
```
313+
position: 7
314+
- type: octokit
315+
method: pullRequests.createComment
316+
owner: '%payload.repository.owner.login%'
317+
repo: '%payload.repository.name%'
318+
number: '%payload.number%'
319+
commit_id: '%payload.pull_request.head.sha%'
320+
path: config.yml
321+
body: |
322+
```suggestion
323+
- description: Go from 0 to PR 1 in less than 10 minutes with this course.
324+
```
325+
position: 8
300326

327+
# 12
328+
- title: Add some descriptions to your course
329+
description: Add some descriptions to your course
330+
event: pull_request.synchronize
331+
actions:
332+
- type: respond
333+
with: add-readme.md
334+
335+
# 13
336+
- title: Add a README to your course
337+
description: Add a README to your course
338+
event: pull_request.synchronize
339+
actions:
340+
- type: respond
341+
with: publish.md
301342

302-
# 12. Add some descriptions to your course
303-
# 13. Add a README to your course
304-
# 14. Deploy your course to the sandbox
343+
# 14
344+
- title: Publish your course to the sandbox environment
345+
description: Publish your course to the sandbox environment
346+
event: pull_request.closed
347+
actions:
348+
- type: respond
349+
with: congratulations.md
350+

responses/add-descriptions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Remember your course's metadata, near the top of your config? We left the description and tagline but it's not time to fill it in.
2+
3+
Accept the suggested changes below or change the lines manually.

responses/add-readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The last thing that remains is a README. This file is show no the course's page, whenever the learner is thinking of registering. Typically this file should contain learning outcomes and some long form content.
2+
3+
Add a README.md to the root directory.

responses/congratulations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You're done!

responses/publish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Your course is now complete! Let's publish it.
2+
3+
Merge this PR. Then go to sandbox/org/new and type in this repo's name. I'll respond when the course publishes.
4+
5+
(Not really - we can't yet listen for a course published event)

responses/respond-success.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
When your learner is successful, gates let the actions that follow execute.
2+
3+
Let's respond to the learner letting them know they've completed our course upon successfully open the PR with a proper title.
4+
5+
Activity:
6+
1. In the same step, add a respond action.
7+
1. Add a `with:` option for the response file.
8+
9+
We created the response file for you but feel free to change it.
10+
11+
You can also accept the suggested changes below.

responses/respond-to-pr.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)