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

Commit 80403b3

Browse files
authored
Merge pull request #63 from githubtraining/debug
Remove first gate checking PR title
2 parents a8e3d3c + ff6aa8f commit 80403b3

File tree

1 file changed

+23
-31
lines changed

1 file changed

+23
-31
lines changed

config.yml

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,11 @@ steps:
2121
link: '{{ repoUrl }}/issues/1'
2222
video: https://www.youtube.com/embed/RlDJqryBkkI
2323
actions:
24-
- type: gate
25-
left: '%payload.pull_request.title%'
26-
right: Changes
27-
operator: ===
28-
else:
29-
- type: respond
30-
with: Make sure the title of your PR is "Changes"
31-
issue: Welcome to React
3224
- type: closeIssue
3325
issue: Welcome to React
3426
- type: respond
3527
with: 01_components.md
36-
issue: Changes
28+
issue: 2
3729
- type: createPullRequestComment
3830
body: 01_header-component-activity.md
3931
file: src/App.jsx
@@ -51,7 +43,7 @@ steps:
5143
operator: ===
5244
right: refs/heads/changes
5345
- type: getPullRequest
54-
pullRequest: Changes
46+
pullRequest: 2
5547
action_id: metaPR2
5648
- type: getFileContents
5749
action_id: fileContents
@@ -63,10 +55,10 @@ steps:
6355
else:
6456
- type: respond
6557
with: 02_bad-header.md
66-
issue: Changes
58+
issue: 2
6759
- type: respond
6860
with: 02_props.md
69-
issue: Changes
61+
issue: 2
7062
- type: createPullRequestComment
7163
body: 02_import-child-component-activity.md
7264
file: src/App.jsx
@@ -85,7 +77,7 @@ steps:
8577
operator: ===
8678
right: refs/heads/changes
8779
- type: getPullRequest
88-
pullRequest: Changes
80+
pullRequest: 2
8981
action_id: metaPR2
9082
- type: getFileContents
9183
action_id: fileContents
@@ -97,7 +89,7 @@ steps:
9789
else:
9890
- type: respond
9991
with: 03_bad-import.md
100-
issue: Changes
92+
issue: 2
10193
- type: createPullRequestComment
10294
body: 03_uncomment-assignments-activity.md
10395
file: src/App.jsx
@@ -116,7 +108,7 @@ steps:
116108
operator: ===
117109
right: refs/heads/changes
118110
- type: getPullRequest
119-
pullRequest: Changes
111+
pullRequest: 2
120112
action_id: metaPR2
121113
- type: getFileContents
122114
action_id: fileContents
@@ -128,7 +120,7 @@ steps:
128120
else:
129121
- type: respond
130122
with: 04_bad-uncomment.md
131-
issue: Changes
123+
issue: 2
132124
- type: createPullRequestComment
133125
body: 04_replace-title-activity.md
134126
file: src/List.jsx
@@ -147,7 +139,7 @@ steps:
147139
operator: ===
148140
right: refs/heads/changes
149141
- type: getPullRequest
150-
pullRequest: Changes
142+
pullRequest: 2
151143
action_id: metaPR2
152144
- type: getFileContents
153145
action_id: fileContents
@@ -159,10 +151,10 @@ steps:
159151
else:
160152
- type: respond
161153
with: 05_bad-prop.md
162-
issue: Changes
154+
issue: 2
163155
- type: respond
164156
with: 05_state.md
165-
issue: Changes
157+
issue: 2
166158
- type: createPullRequestComment
167159
body: 05_add-state-variable-activity.md
168160
file: src/App.jsx
@@ -181,7 +173,7 @@ steps:
181173
operator: ===
182174
right: refs/heads/changes
183175
- type: getPullRequest
184-
pullRequest: Changes
176+
pullRequest: 2
185177
action_id: metaPR2
186178
- type: getFileContents
187179
action_id: fileContents
@@ -193,7 +185,7 @@ steps:
193185
else:
194186
- type: respond
195187
with: 06_bad-state.md
196-
issue: Changes
188+
issue: 2
197189
- type: createPullRequestComment
198190
body: 06_explaining-this-state-activity.md
199191
file: src/App.jsx
@@ -217,7 +209,7 @@ steps:
217209
operator: ===
218210
right: refs/heads/changes
219211
- type: getPullRequest
220-
pullRequest: Changes
212+
pullRequest: 2
221213
action_id: metaPR2
222214
- type: getFileContents
223215
action_id: fileContents
@@ -229,7 +221,7 @@ steps:
229221
else:
230222
- type: respond
231223
with: 07_bad-function.md
232-
issue: Changes
224+
issue: 2
233225
- type: createPullRequestComment
234226
body: 07_bind-function-activity.md
235227
file: src/App.jsx
@@ -248,7 +240,7 @@ steps:
248240
operator: ===
249241
right: refs/heads/changes
250242
- type: getPullRequest
251-
pullRequest: Changes
243+
pullRequest: 2
252244
action_id: metaPR2
253245
- type: getFileContents
254246
action_id: fileContents
@@ -260,10 +252,10 @@ steps:
260252
else:
261253
- type: respond
262254
with: 04_bad-uncomment.md
263-
issue: Changes
255+
issue: 2
264256
- type: respond
265257
with: 08_callbackfunctions.md
266-
issue: Changes
258+
issue: 2
267259
- type: createPullRequestComment
268260
body: 08_passing-functions-activity.md
269261
file: src/App.jsx
@@ -287,7 +279,7 @@ steps:
287279
operator: ===
288280
right: refs/heads/changes
289281
- type: getPullRequest
290-
pullRequest: Changes
282+
pullRequest: 2
291283
action_id: metaPR2
292284
- type: getFileContents
293285
action_id: fileContents
@@ -299,7 +291,7 @@ steps:
299291
else:
300292
- type: respond
301293
with: 09_bad-replace.md
302-
issue: Changes
294+
issue: 2
303295
- type: createPullRequestComment
304296
body: 09_uncomment-grades-activity.md
305297
file: src/App.jsx
@@ -326,11 +318,11 @@ steps:
326318
else:
327319
- type: respond
328320
with: 04_bad-uncomment.md
329-
issue: Changes
321+
issue: 2
330322
- type: createReview
331323
event: APPROVE
332324
body: 10_approve.md
333-
pullRequest: Changes
325+
pullRequest: 2
334326

335327
# Step 11: Merge pull request
336328
- title: Merge your pull request
@@ -340,5 +332,5 @@ steps:
340332
actions:
341333
- type: respond
342334
with: 11_congrats.md
343-
issue: Changes
335+
issue: 2
344336

0 commit comments

Comments
 (0)