@@ -53,6 +53,17 @@ steps:
53
53
- type : getPullRequest
54
54
pullRequest : Changes
55
55
action_id : metaPR2
56
+ - type : getFileContents
57
+ action_id : fileContents
58
+ filename : ' src/App.jsx'
59
+ - type : gate
60
+ left : ' /^\s*<\s*h3\s*className\s*=\s*"\s*Box-title\s*d-flex\s*flex-justify-center\s*"\s*>\s*GradeBook\s*<\s*\/\s*h3\s*>/gm'
61
+ operator : test
62
+ right : ' %actions.fileContents%'
63
+ else :
64
+ - type : respond
65
+ with : bad-header.md
66
+ issue : Changes
56
67
- type : respond
57
68
with : 02-props.md
58
69
issue : Changes
@@ -74,6 +85,17 @@ steps:
74
85
- type : getPullRequest
75
86
pullRequest : Changes
76
87
action_id : metaPR2
88
+ - type : getFileContents
89
+ action_id : fileContents
90
+ filename : ' src/App.jsx'
91
+ - type : gate
92
+ left : ' /^\s*import\s*List\s*from\s*"\s*\.\/List\s*"\s*;\s*/gm'
93
+ operator : test
94
+ right : ' %actions.fileContents%'
95
+ else :
96
+ - type : respond
97
+ with : bad-import.md
98
+ issue : Changes
77
99
- type : createPullRequestComment
78
100
body : uncomment-assignments-activity.md
79
101
file : src/App.jsx
@@ -121,6 +143,17 @@ steps:
121
143
- type : getPullRequest
122
144
pullRequest : Changes
123
145
action_id : metaPR2
146
+ - type : getFileContents
147
+ action_id : fileContents
148
+ filename : ' src/List.jsx'
149
+ - type : gate
150
+ left : ' />\s*{\s*this\.props\.title\s*}\s*<\s*/gm'
151
+ operator : test
152
+ right : ' %actions.fileContents%'
153
+ else :
154
+ - type : respond
155
+ with : bad-prop.md
156
+ issue : Changes
124
157
- type : respond
125
158
with : 03-state.md
126
159
issue : Changes
@@ -142,6 +175,17 @@ steps:
142
175
- type : getPullRequest
143
176
pullRequest : Changes
144
177
action_id : metaPR2
178
+ - type : getFileContents
179
+ action_id : fileContents
180
+ filename : ' src/App.jsx'
181
+ - type : gate
182
+ left : ' /\s*students\s*:\s*\[\s*\]\s*,\s*/gm'
183
+ operator : test
184
+ right : ' %actions.fileContents%'
185
+ else :
186
+ - type : respond
187
+ with : bad-state.md
188
+ issue : Changes
145
189
- type : createPullRequestComment
146
190
body : explaining-this-state-activity.md
147
191
file : src/App.jsx
@@ -231,6 +275,17 @@ steps:
231
275
- type : getPullRequest
232
276
pullRequest : Changes
233
277
action_id : metaPR2
278
+ - type : getFileContents
279
+ action_id : fileContents
280
+ filename : ' src/App.jsx'
281
+ - type : gate
282
+ left : ' /\s*placeholder\s*=\s*"Add\sStudent\.\.\."\s*\n\s*currList\s*=\s*{\s*this\.state\.students\s*}\n\s*addFunction\s*=\s*{\s*this\.addStudent\s*}\s*\n/gm'
283
+ operator : test
284
+ right : ' %actions.fileContents%'
285
+ else :
286
+ - type : respond
287
+ with : bad-replace.md
288
+ issue : Changes
234
289
- type : createPullRequestComment
235
290
body : uncomment-grades-activity.md
236
291
file : src/App.jsx
0 commit comments