@@ -4,7 +4,7 @@ description: If you are looking for a quick and fun introduction to the exciting
4
4
template :
5
5
name : intro-html
6
6
repo : intro-to-html-template
7
- description : ' A robot powered training repository :robot:'
7
+ description : " A robot powered training repository :robot:"
8
8
before :
9
9
- type : createIssue
10
10
title : Welcome
@@ -14,31 +14,31 @@ before:
14
14
steps :
15
15
- title : Turn on GitHub Pages
16
16
description : Turn on GitHub Pages in the settings page of the repository.
17
- event : page_build
18
- link : ' {{ repoUrl }}/issues/1'
17
+ event : page_build
18
+ link : " {{ repoUrl }}/issues/1"
19
19
actions :
20
20
- type : octokit
21
21
method : repos.getPages
22
- owner : ' %payload.repository.owner.login%'
23
- repo : ' %payload.repository.name%'
22
+ owner : " %payload.repository.owner.login%"
23
+ repo : " %payload.repository.name%"
24
24
action_id : pagesUrl
25
25
- type : respond
26
26
with : 00-openapr.md
27
27
data :
28
- pagesUrl : ' %actions.pagesUrl.data.html_url%'
28
+ pagesUrl : " %actions.pagesUrl.data.html_url%"
29
29
issue : 1
30
30
31
31
- title : Open a pull request
32
32
description : Open a pull request.
33
33
event : pull_request.opened
34
- link : ' {{ repoUrl }}/issues/1'
34
+ link : " {{ repoUrl }}/issues/1"
35
35
actions :
36
36
- type : gate
37
- left : ' %payload.pull_request.head.ref%'
37
+ left : " %payload.pull_request.head.ref%"
38
38
operator : ===
39
39
right : add-index
40
40
- type : gate
41
- left : ' %payload.pull_request.base.ref%'
41
+ left : " %payload.pull_request.base.ref%"
42
42
operator : ===
43
43
right : master
44
44
- type : closeIssue
@@ -47,31 +47,31 @@ steps:
47
47
- type : respond
48
48
with : 02-html-structure.md
49
49
data :
50
- welcomeLink : ' %actions.prev.data.html_url%'
50
+ welcomeLink : " %actions.prev.data.html_url%"
51
51
52
52
- title : Build the HTML document structure
53
53
description : Follow the instructions to write the base structure of your HTML file
54
54
event : pull_request.synchronize
55
- link : ' {{ repoUrl }}/pulls'
55
+ link : " {{ repoUrl }}/pulls"
56
56
actions :
57
57
- type : getFileContents
58
58
filename : index.html
59
59
action_id : index_file
60
60
- type : htmlContainsTag
61
- html : ' %actions.index_file%'
61
+ html : " %actions.index_file%"
62
62
tag : html
63
63
action_id : contains_html
64
64
required : false
65
65
- type : htmlContainsTag
66
- html : ' %actions.index_file%'
66
+ html : " %actions.index_file%"
67
67
tag : body
68
68
action_id : contains_body
69
69
required : false
70
70
- type : gate
71
71
every : true
72
72
gates :
73
- - left : ' %actions.contains_html%'
74
- - left : ' %actions.contains_body%'
73
+ - left : " %actions.contains_html%"
74
+ - left : " %actions.contains_body%"
75
75
else :
76
76
type : createReview
77
77
body : 03e-add-html.md
@@ -83,26 +83,26 @@ steps:
83
83
- title : Add a title tag
84
84
description : Add a title tag
85
85
event : pull_request.synchronize
86
- link : ' {{ repoUrl }}/pulls'
86
+ link : " {{ repoUrl }}/pulls"
87
87
actions :
88
88
- type : getFileContents
89
89
filename : index.html
90
90
action_id : index_file
91
91
- type : htmlContainsTag
92
- html : ' %actions.index_file%'
92
+ html : " %actions.index_file%"
93
93
tag : head
94
94
action_id : contains_head
95
95
required : false
96
96
- type : htmlContainsTag
97
- html : ' %actions.index_file%'
97
+ html : " %actions.index_file%"
98
98
tag : title
99
99
action_id : contains_title
100
100
required : false
101
101
- type : gate
102
102
every : true
103
103
gates :
104
- - left : ' %actions.contains_title%'
105
- - left : ' %actions.contains_head%'
104
+ - left : " %actions.contains_title%"
105
+ - left : " %actions.contains_head%"
106
106
else :
107
107
type : createReview
108
108
event : REQUEST_CHANGES
@@ -114,46 +114,46 @@ steps:
114
114
- title : Merge your first pull request
115
115
description : Merge your pull request
116
116
event : pull_request.closed
117
- link : ' {{ repoUrl }}/pulls'
117
+ link : " {{ repoUrl }}/pulls"
118
118
actions :
119
119
- type : gate
120
- left : ' %payload.pull_request.merged%'
120
+ left : " %payload.pull_request.merged%"
121
121
- type : octokit
122
122
method : repos.getPages
123
- owner : ' %payload.repository.owner.login%'
124
- repo : ' %payload.repository.name%'
123
+ owner : " %payload.repository.owner.login%"
124
+ repo : " %payload.repository.name%"
125
125
action_id : pagesUrl
126
126
- type : createIssue
127
127
title : Add a header
128
128
body : 05-h1-tag.md
129
129
data :
130
- pagesUrl : ' %actions.pagesUrl.data.html_url%'
130
+ pagesUrl : " %actions.pagesUrl.data.html_url%"
131
131
action_id : new_issue
132
132
- type : respond
133
133
with : next.md
134
134
data :
135
- issueURL : ' %actions.new_issue.data.html_url%'
135
+ issueURL : " %actions.new_issue.data.html_url%"
136
136
137
137
- title : Change your username to an h1 tag
138
138
description : Change your username to an h1 tag
139
139
event : pull_request
140
- link : ' {{ repoUrl }}/pulls'
140
+ link : " {{ repoUrl }}/pulls"
141
141
actions :
142
142
- type : gate
143
143
gates :
144
- - left : ' %payload.action%'
144
+ - left : " %payload.action%"
145
145
operator : ===
146
146
right : opened
147
- - left : ' %payload.action%'
147
+ - left : " %payload.action%"
148
148
operator : ===
149
149
right : synchronize
150
150
- type : gate
151
- left : ' %payload.pull_request.base.ref%'
151
+ left : " %payload.pull_request.base.ref%"
152
152
operator : ===
153
153
right : master
154
154
- type : gate
155
- left : ' %payload.action%'
156
- operator : ' !=='
155
+ left : " %payload.action%"
156
+ operator : " !=="
157
157
right : opened
158
158
required : false
159
159
else :
@@ -163,12 +163,12 @@ steps:
163
163
filename : index.html
164
164
action_id : index_file
165
165
- type : htmlContainsTag
166
- html : ' %actions.index_file%'
166
+ html : " %actions.index_file%"
167
167
tag : h1
168
168
action_id : contains_h1
169
169
required : false
170
170
- type : gate
171
- left : ' %actions.contains_h1%'
171
+ left : " %actions.contains_h1%"
172
172
else :
173
173
type : createReview
174
174
event : REQUEST_CHANGES
@@ -180,18 +180,18 @@ steps:
180
180
- title : Add an image
181
181
description : Add an image
182
182
event : pull_request.synchronize
183
- link : ' {{ repoUrl }}/pulls'
183
+ link : " {{ repoUrl }}/pulls"
184
184
actions :
185
185
- type : getFileContents
186
186
filename : index.html
187
187
action_id : index_file
188
188
- type : htmlContainsTag
189
- html : ' %actions.index_file%'
189
+ html : " %actions.index_file%"
190
190
tag : img
191
191
attribute : src
192
192
action_id : contains_img
193
193
- type : gate
194
- left : ' %actions.contains_img%'
194
+ left : " %actions.contains_img%"
195
195
else :
196
196
type : createReview
197
197
body : 06e-image.md
@@ -203,46 +203,46 @@ steps:
203
203
- title : Merge your second pull request
204
204
description : Merge your pull request
205
205
event : pull_request.closed
206
- link : ' {{ repoUrl }}/pulls'
206
+ link : " {{ repoUrl }}/pulls"
207
207
actions :
208
208
- type : gate
209
- left : ' %payload.pull_request.merged%'
209
+ left : " %payload.pull_request.merged%"
210
210
- type : octokit
211
211
method : repos.getPages
212
- owner : ' %payload.repository.owner.login%'
213
- repo : ' %payload.repository.name%'
212
+ owner : " %payload.repository.owner.login%"
213
+ repo : " %payload.repository.name%"
214
214
action_id : pagesUrl
215
215
- type : createIssue
216
216
action_id : new_issue
217
217
title : Create a list
218
218
body : 08-create-list.md
219
219
data :
220
- pagesUrl : ' %actions.pagesUrl.data.html_url%'
220
+ pagesUrl : " %actions.pagesUrl.data.html_url%"
221
221
- type : respond
222
222
with : next.md
223
223
data :
224
- issueURL : ' %actions.new_issue.data.html_url%'
224
+ issueURL : " %actions.new_issue.data.html_url%"
225
225
226
226
- title : Create a list
227
227
description : Create a list
228
228
event : pull_request
229
- link : ' {{ repoUrl }}/pulls'
229
+ link : " {{ repoUrl }}/pulls"
230
230
actions :
231
231
- type : gate
232
232
gates :
233
- - left : ' %payload.action%'
233
+ - left : " %payload.action%"
234
234
operator : ===
235
235
right : opened
236
- - left : ' %payload.action%'
236
+ - left : " %payload.action%"
237
237
operator : ===
238
238
right : synchronize
239
239
- type : gate
240
- left : ' %payload.pull_request.base.ref%'
240
+ left : " %payload.pull_request.base.ref%"
241
241
operator : ===
242
242
right : master
243
243
- type : gate
244
- left : ' %payload.action%'
245
- operator : ' !=='
244
+ left : " %payload.action%"
245
+ operator : " !=="
246
246
right : opened
247
247
required : false
248
248
else :
@@ -252,19 +252,19 @@ steps:
252
252
filename : index.html
253
253
action_id : index_file
254
254
- type : htmlContainsTag
255
- html : ' %actions.index_file%'
255
+ html : " %actions.index_file%"
256
256
tag : ul
257
257
action_id : contains_ul
258
258
required : false
259
259
- type : htmlContainsTag
260
- html : ' %actions.index_file%'
260
+ html : " %actions.index_file%"
261
261
tag : ol
262
262
action_id : contains_ol
263
263
required : false
264
264
- type : gate
265
265
gates :
266
- - left : ' %actions.contains_ul%'
267
- - left : ' %actions.contains_ol%'
266
+ - left : " %actions.contains_ul%"
267
+ - left : " %actions.contains_ol%"
268
268
else :
269
269
type : createReview
270
270
body : 08e-list.md
@@ -276,18 +276,18 @@ steps:
276
276
- title : Add links
277
277
description : Add links
278
278
event : pull_request.synchronize
279
- link : ' {{ repoUrl }}/pulls'
279
+ link : " {{ repoUrl }}/pulls"
280
280
actions :
281
281
- type : getFileContents
282
282
filename : index.html
283
283
action_id : index_file
284
284
- type : htmlContainsTag
285
- html : ' %actions.index_file%'
285
+ html : " %actions.index_file%"
286
286
tag : a
287
287
action_id : contains_a
288
288
required : false
289
289
- type : gate
290
- left : ' %actions.contains_a%'
290
+ left : " %actions.contains_a%"
291
291
else :
292
292
type : createReview
293
293
body : 09e-links.md
@@ -299,10 +299,10 @@ steps:
299
299
- title : Merge your third pull request
300
300
description : Merge your pull request
301
301
event : pull_request.closed
302
- link : ' {{ repoUrl }}/pulls'
302
+ link : " {{ repoUrl }}/pulls"
303
303
actions :
304
304
- type : gate
305
- left : ' %payload.pull_request.merged%'
305
+ left : " %payload.pull_request.merged%"
306
306
- type : mergeBranch
307
307
head : master
308
308
base : add-style
@@ -314,20 +314,20 @@ steps:
314
314
- type : respond
315
315
with : next.md
316
316
data :
317
- issueURL : ' %actions.new_pr.data.html_url%'
317
+ issueURL : " %actions.new_pr.data.html_url%"
318
318
319
319
- title : Make it beautiful
320
320
description : Add some styles to your new site
321
321
event : pull_request.synchronize
322
- link : ' {{ repoUrl }}/pulls'
322
+ link : " {{ repoUrl }}/pulls"
323
323
actions :
324
324
- type : getFileContents
325
325
filename : index.html
326
326
action_id : index
327
327
- type : gate
328
328
left : ' /<link rel="stylesheet" href="style.css">/'
329
329
operator : test
330
- right : ' %actions.index%'
330
+ right : " %actions.index%"
331
331
else :
332
332
type : respond
333
333
with : 11-style-fail.md
@@ -338,19 +338,19 @@ steps:
338
338
- title : Merge the final pull request
339
339
description : Get ready to show off your new skills
340
340
event : pull_request.closed
341
- link : ' {{ repoUrl }}/pulls'
341
+ link : " {{ repoUrl }}/pulls"
342
342
actions :
343
343
- type : gate
344
- left : ' %payload.pull_request.merged%'
344
+ left : " %payload.pull_request.merged%"
345
345
- type : octokit
346
346
method : repos.getPages
347
- owner : ' %payload.repository.owner.login%'
348
- repo : ' %payload.repository.name%'
347
+ owner : " %payload.repository.owner.login%"
348
+ repo : " %payload.repository.name%"
349
349
action_id : pagesUrl
350
350
- type : respond
351
351
with : 12-big-finish.md
352
352
data :
353
- pagesUrl : ' %actions.pagesUrl.data.html_url%'
353
+ pagesUrl : " %actions.pagesUrl.data.html_url%"
354
354
355
- tags :
355
+ tags :
356
356
- GitHub Pages
0 commit comments