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

Commit c176747

Browse files
committed
make a consistent step 10
1 parent 4cb993a commit c176747

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ steps:
338338

339339
# 10
340340
- title: Trigger your first step with a GitHub event
341-
description: Trigger your first step with a GitHub event
341+
description: Add a pull_request.opened event.
342342
event: pull_request.synchronize
343343
actions:
344344
- type: getFileContents

responses/07.0_add-trigger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Great! Your learner now has information about what they're expected to do in thi
33
### Events
44
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/).
55

6-
## Step 8: Add an event
6+
## Step 10: Add an event
77
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.
88

99
### :keyboard: Add an event

0 commit comments

Comments
 (0)