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

Commit a2dbd12

Browse files
committed
add a step asking learner to change template repo
1 parent 224f1b9 commit a2dbd12

5 files changed

Lines changed: 36 additions & 6 deletions

File tree

config.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ steps:
2626
description: Open a PR to begin crafting your course
2727
event: pull_request.opened
2828
actions:
29+
- type: respond
30+
with: add-title.md
2931
- type: octokit
3032
method: pullRequests.createComment
3133
owner: '%payload.repository.owner.login%'
@@ -40,10 +42,25 @@ steps:
4042
position: 4
4143

4244
# 2
43-
# - title: Give your course a title
44-
# description: Give your course a title
45-
# event: pull_request.synchronize
46-
# actions:
45+
- title: Give your course a title
46+
description: Give your course a title
47+
event: pull_request.synchronize
48+
actions:
49+
- type: respond
50+
with: add-template.md
51+
- type: octokit
52+
method: pullRequests.createComment
53+
owner: '%payload.repository.owner.login%'
54+
repo: '%payload.repository.name%'
55+
number: '%payload.number%'
56+
commit_id: '%payload.pull_request.head.sha%'
57+
path: config.yml
58+
body: |
59+
```suggestion
60+
repo: lab-starter-template
61+
```
62+
position: 8
63+
4764
# 3. Point to the template repo
4865
# 4. Give the learner's repo a name
4966
# 5. Create an issue using Learning Lab

responses/add-template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Great! The title will appear anywhere the course is referenced. We'll fill in some more of the course metadata later. Let's get into its nuts and bolts though.
2+
3+
Most courses make use of a template repo. Template repos are cloned for the learner and can contain starter code or resources to help them find their way.
4+
5+
Let's add our own template repo. To speed things up, we've created a template repo for you. We recommend going with this one.
6+
7+
You can edit the file directly or accept the suggested change below.

responses/add-title.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Great! You opened the PR.
2+
3+
Now let's give your course a title. You can do so by editing `config.yml` directly and changing the title field, or accepting the suggestion below.

responses/title.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

responses/welcome.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
Welcome. There's some boilerplate in your Code tab which contains most of what you need to get your Learning Lab course up and running.
22

3-
However, we need to fill in some of the fields. I've started a branch with the first changes. [Open a pull request]({{ prUrl }}) against `add-metadata`.
3+
However, we need to fill in some of the fields. I've started a branch with the first changes.
4+
5+
Activity: Open a PR for the title
6+
7+
1. [Open a pull request]({{ prUrl }}) against `add-metadata`.

0 commit comments

Comments
 (0)