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

Commit bced94d

Browse files
committed
use new step numbers
1 parent e329b6b commit bced94d

File tree

3 files changed

+37
-33
lines changed

3 files changed

+37
-33
lines changed

config.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ before:
1313
- type: updateBranchProtection
1414

1515
# Repo artifacts:
16-
# 1. PR: Add a course title and description
17-
# 2. PR: Setup the learner's repo
18-
# 3. PR: Write the course steps
19-
# 4. Issue: Publish your course
16+
# 1. Issue: Welcome
17+
# 2. Issue: Transfer your course
18+
# -OR-
19+
# 2. PR: Add a course title and description
20+
# 3. PR: Setup the learner's repo
21+
# 4. PR: Write the course steps
22+
# 5. Issue: Publish your course
2023

2124
steps:
2225

@@ -54,14 +57,14 @@ steps:
5457
url: '%actions.metaPR.data.html_url%'
5558
- type: createIssue
5659
title: Transfer your course
57-
body: 14.0_congratulations.md
60+
body: how-to-publish.md
5861
action_id: transferIssue
5962
- type: respond
6063
with: goto-transfer.md
6164
data:
6265
url: '%actions.transferIssue.data.html_url%'
6366

64-
# 1
67+
# 2
6568
- title: Give your course a title
6669
description: Name your course so learners can find it.
6770
event: pull_request.synchronize
@@ -104,7 +107,7 @@ steps:
104107
```
105108
position: 8
106109

107-
# 2
110+
# 3
108111
- title: Add some descriptions to your course
109112
description: Give your course a description and tagline so learners can identify it.
110113
link: '{{ repoUrl }}/pull/1'
@@ -124,7 +127,7 @@ steps:
124127
- type: respond
125128
with: approve-first-pr.md
126129

127-
# 3
130+
# 4
128131
- title: Approve the course metadata
129132
description: Approve the pull request containing the course's metadata.
130133
link: '{{ repoUrl }}/pull/1'
@@ -159,7 +162,7 @@ steps:
159162
```
160163
position: 7
161164

162-
# 4
165+
# 5
163166
- title: Point to the template repo
164167
description: Designate a template repository from which to clone.
165168
link: '{{ repoUrl }}/pull/2'
@@ -190,7 +193,7 @@ steps:
190193
```
191194
position: 6
192195

193-
# 5
196+
# 6
194197
- title: Give the learner's repo a name
195198
description: Designate a name for the repository when it is created for the learner.
196199
link: '{{ repoUrl }}/pull/2'
@@ -210,7 +213,7 @@ steps:
210213
- type: respond
211214
with: approve-second-pr.md
212215

213-
# 6
216+
# 7
214217
- title: Approve the repo setup
215218
description: Approve the template repo information
216219
link: '{{ repoUrl }}/pull/2'
@@ -269,7 +272,7 @@ steps:
269272
```
270273
position: 9
271274

272-
# 7
275+
# 8
273276
- title: Create an issue using Learning Lab
274277
description: Use the `before` block to create an issue in the learner's repo.
275278
link: '{{ repoUrl }}/pull/3'
@@ -290,7 +293,7 @@ steps:
290293
data:
291294
fileUrl: '%payload.repository.html_url%/new/%payload.pull_request.head.ref%/responses?filename=responses/welcome-text.md'
292295

293-
# 8
296+
# 9
294297
- title: Create your first response
295298
description: Add content to the repo's first issue.
296299
link: '{{ repoUrl }}/pull/3'
@@ -344,7 +347,7 @@ steps:
344347
```
345348
position: 20
346349

347-
# 9
350+
# 10
348351
- title: Name your first step and give it a description
349352
description: Identify the first step so the learner knows what's expected.
350353
link: '{{ repoUrl }}/pull/3'
@@ -375,7 +378,7 @@ steps:
375378
```
376379
position: 21
377380

378-
# 10
381+
# 11
379382
- title: Trigger your first step with a GitHub event
380383
description: Add a pull_request.opened event.
381384
link: '{{ repoUrl }}/pull/3'
@@ -406,7 +409,7 @@ steps:
406409
```
407410
position: 32
408411

409-
# 11
412+
# 12
410413
- title: Validate a learner's PR
411414
description: Add a gate to determine if the learner took the expected action.
412415
link: '{{ repoUrl }}/pull/3'
@@ -461,7 +464,7 @@ steps:
461464
```
462465
position: 35
463466

464-
# 12
467+
# 13
465468
- title: Use contextual information to validate
466469
description: Add options to the gate action.
467470
link: '{{ repoUrl }}/pull/3'
@@ -506,7 +509,7 @@ steps:
506509
```
507510
position: 37
508511

509-
# 13
512+
# 14
510513
- title: Respond to a learner's successful PR
511514
description: Use a respond action when a learner opens their pull request.
512515
link: '{{ repoUrl }}/pull/3'
@@ -527,7 +530,7 @@ steps:
527530
data:
528531
fileUrl: '%payload.repository.html_url%/new/%payload.pull_request.head.ref%?filename=README.md'
529532

530-
# 14
533+
# 15
531534
- title: Add a README to your course
532535
description: Write a longform description for your course.
533536
link: '{{ repoUrl }}/pull/3'
@@ -548,7 +551,7 @@ steps:
548551
- type: respond
549552
with: 13.0_publish.md
550553

551-
# 15
554+
# 16
552555
- title: Approve the steps
553556
description: Submit an approval for the steps pull request.
554557
link: '{{ repoUrl }}/pull/3'
@@ -563,6 +566,8 @@ steps:
563566
title: Publish your course
564567
body: 14.0_congratulations.md
565568
action_id: publishIssue
569+
comments:
570+
- how-to-publish.md
566571
- type: respond
567572
with: goto-publish.md
568573
data:

responses/14.0_congratulations.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
## Nice work!
22

3-
You're ready to publish the course. Since Learning Lab courses must be owned by your organization, you'll need to [fork](https://help.github.com/articles/fork-a-repo/) the courses there first. Here are the instructions:
4-
5-
## Publish the course
6-
1. Choose an organization that will house your Learning Lab courses. You may have done this prior to taking the course.
7-
1. Confirm that you are an owner of the chosen Learning Lab course organization, or a member of a team named **lab-assistants** in that organization.
8-
1. Fork this repository to your chosen organization.
9-
1. Fork the template repository to your chosen organization.
10-
1. Navigate to https://lab-sandbox.github.com/`your-organization`/new.
11-
1. In the Repository name field, type in **{{ repo }}**
12-
1. We recommend selecting **Private** so you can test the course with other members of the organization before making it public.
13-
1. Take the course, which should be available at https://lab-sandbox.github.com/`your-organization`/{{ repo }}
14-
15-
Now...[what will you learn next]({{ host }}/courses)?
3+
You're ready to publish the course.

responses/how-to-publish.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Since Learning Lab courses must be owned by your organization, you'll need to [fork](https://help.github.com/articles/fork-a-repo/) the courses there first. Here are the instructions:
2+
3+
## Publish the course
4+
1. Choose an organization that will house your Learning Lab courses. You may have done this prior to taking the course.
5+
1. Confirm that you are an owner of the chosen Learning Lab course organization, or a member of a team named **lab-assistants** in that organization.
6+
1. Fork this repository to your chosen organization.
7+
1. Fork the template repository to your chosen organization.
8+
1. Navigate to `https://lab-sandbox.github.com/YOUR-ORGANIZATION/new`
9+
1. In the Repository name field, type in **{{ repo }}**
10+
1. We recommend selecting **Private** so you can test the course with other members of the organization before making it public.
11+
1. Take the course, which should be available at https://lab-sandbox.github.com/YOUR-ORGANIZATION/{{ repo }}

0 commit comments

Comments
 (0)