You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: responses/02.0_add-template.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ First, how will this content help teach the concept? For example, if a course is
9
9
10
10
Second, is the finished product useful? At the end of the course, the finished repository should serve a purpose aside from the lessons. A working game, a portfolio or resume, or a collection of template documents are a few examples.
11
11
12
-
## Step 3: Designate a template repository
12
+
## Step 4: Designate a template repository
13
13
Let's add our own template repository. To speed things up, we've created a template repository for you. We recommend using our template for this course.
14
14
15
15
### :keyboard: Activity: Add a template repository
Copy file name to clipboardExpand all lines: responses/03.0_add-repo-name.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Awesome! Whenever a user registers for this course, Learning Lab will create a new repository for them based on `lab-starter-template`.
2
2
3
-
## Step 4: Name the repository
3
+
## Step 5: Name the repository
4
4
5
5
`lab-starter-template` is a great template repository, and it's named to reflect that. But, we want the user to experience that repository through a _different_ name. We can designate that name in the `config.yml`.
Copy file name to clipboardExpand all lines: responses/04.0_create-issue.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Anything in this block occurs before the learner can access their course reposit
6
6
### Learning Lab actions
7
7
Actions are reusable modules that each course has access to. They are each designed to do very specific things, and nothing more. This is to optimize for reusability and simplicity. The documentation contains a listing of [:book: all available actions](https://github.github.com/learning-lab-equipment/#/actions/).
8
8
9
-
## Step 5: Add to the `before` block
9
+
## Step 7: Add to the `before` block
10
10
11
11
We'll use the [:book:`createIssue` action](https://github.github.com/learning-lab-equipment/#/actions/createIssue/) to create an issue for the learner with some initial instructions. The `createIssue` action requires two [:book: options](https://github.github.com/learning-lab-equipment/#/actions/createIssue/?id=options):
Copy file name to clipboardExpand all lines: responses/05.0_add-response.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Great! Now, the repository will have an issue for the learner.
2
2
3
-
## Step 6: Creating a response
3
+
## Step 9: Creating a response
4
4
5
5
In the last step, we referenced a file titled `welcome-text.md`, but it doesn't exist. Learning Lab automatically looks in the [:book:`responses/` directory](https://github.github.com/learning-lab-equipment/#/3-5-responses) for all content files. Let's add it.
Copy file name to clipboardExpand all lines: responses/06.0_add-first-step.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ For example, you _could_ write a lot of text and have the user close the issue w
12
12
See [:book: best practices](https://github.github.com/learning-lab-equipment/#/3-5-responses?id=best-practices) in the Learning Lab docs for more suggestions.
13
13
</details>
14
14
15
-
## Step 7: Naming our first step
15
+
## Step 9: Naming our first step
16
16
17
17
Let's name our first step. We will give it a **title** and a **description**. These will be shown on Learning Lab, and they help course authors stay organized in the `config.yml` file. The docs show [:book: syntax and examples](https://github.github.com/learning-lab-equipment/#/3-4-yaml?id=relevant-syntax-1) of how steps are shown to the learner.
Copy file name to clipboardExpand all lines: responses/07.0_add-trigger.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Great! Your learner now has information about what they're expected to do in thi
3
3
### Events
4
4
Every step in a course will be triggered by a GitHub Event. All possible events are documented in [Events Types & Payloads on the GitHub Developer Guide](https://developer.github.com/v3/activity/events/types/).
5
5
6
-
## Step 8: Add an event
6
+
## Step 10: Add an event
7
7
Let's now find the `event` that will trigger the step. Because we want the learner to open a new Pull Request, the event we're looking for is [`pull_request`](https://developer.github.com/v3/activity/events/types/#pullrequestevent). Whenever this event occurs, information about the pull request is delivered to Learning Lab. However, if we just write `pull_request`, _any_ interaction with a pull request will cause this step to be triggered. We're specifically looking for the learner to _open a pull request_. We can filter the event to only opened pull requests by using `pull_request.opened` instead.
Copy file name to clipboardExpand all lines: responses/08.0_validate.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The events that can act as triggers help Learning Lab know when something happen
4
4
5
5
Course authors can use **gates** to be validate the user's completion of a step. A [:book:`gate`](https://github.github.com/learning-lab-equipment/#/actions/gate/) is a Learning Lab action. Gates are conditionals, and they behave much like a conditional in Javascript. Let's add a `gate`, we'll specify its options in a later step.
6
6
7
-
## Step 9: Add a gate
7
+
## Step 11: Add a gate
8
8
9
9
Let's now validate the learner's PR. We asked them to title the pull request "Add name to README" so that's what we need to validate against.
Copy file name to clipboardExpand all lines: responses/09.0_add-context.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
### Step 10: Add validation
1
+
### Step 12: Add validation
2
2
We need to validate against the learner's pull request title. This information is accessible to us [:book: from the payload](https://github.github.com/learning-lab-equipment/#/3-3-writing-steps?id=accessing-payload-data) that is sent with the event. In this case, the information was sent from a `pull_request.opened` event.
3
3
4
4
You can see an example of all the information sent [in the GitHub Developer docs](https://developer.github.com/v3/activity/events/types/#webhook-payload-example-26).
0 commit comments