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
We need to validate against the learner's pull request title. This information is accessible to us because it is a pull request that triggered this step's execution (specifically, a `pull_request.opened` event).
2
+
3
+
We'll add the `left:` option to the gate, and set it to the pull request's title.
4
+
5
+
Activity:
6
+
1. Add a `left:` option to the gate
7
+
1. Set the gate's `left:` option to the pull request's title which is `'%payload.pull_request.title%'`.
8
+
1. Set the gate's `operator:` to `===`
9
+
1. Set the gate's `right:` to the title we expect which is `Add name to README`
10
+
11
+
You can also accept the suggested changes below. They're in batch, so you'll have to go to Files Changed.
Let's now validate the learner's PR. We asked them to title the PR "Add name to README" so that's what we need to validate against.
2
+
3
+
The action that will help us validate the learner's PR is a `gate`. 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.
4
+
5
+
Activity: add a gate
6
+
7
+
1. Add a gate or accept the suggested change below.
0 commit comments