File tree Expand file tree Collapse file tree 1 file changed +20
-17
lines changed
markdown-templates/step-feedback Expand file tree Collapse file tree 1 file changed +20
-17
lines changed Original file line number Diff line number Diff line change 1
- {{#passed}}
1
+ {%- set all_passed = (results_table | selectattr("passed") | length) == (results_table | length) %}
2
+
3
+ {%- if all_passed %}
2
4
3
5
## Step {{ step_number }} - Passed ✅
4
6
5
- {{/passed}}
6
- {{^passed}}
7
+ {%- else %}
7
8
8
9
## Step {{ step_number }} - Fail ❌
9
10
10
- {{/passed} }
11
+ {%- endif % }
11
12
12
- {{#passed} }
13
+ {%- if all_passed % }
13
14
<img src =" https://octodex.github.com/images/inflatocat.png " align =" right " height =" 150px " alt =" Inflatocat image indicating the step passed " />
14
- {{/passed} }
15
- {{^passed}}
15
+ {%- else % }
16
+
16
17
<img src =" https://octodex.github.com/images/spidertocat.png " align =" right " height =" 100px " alt =" Spidertocat image indicating the step failed " />
17
18
Some checks failed. Please review the results below and try again.
18
19
19
20
Time to find the bug! 🤔
20
- {{/passed} }
21
+ {%- endif % }
21
22
22
23
| Status | Description |
23
- | --- | --- |
24
- {{#results_table}}
25
- | {{#passed}}✅ - Pass{{/passed}}{{^passed}}❌ - Fail{{/passed}} | {{ description }} |
26
- {{/results_table}}
24
+ | ------ | ----------- |
27
25
28
- {{#tips.length}}
26
+ {%- for row in results_table %}
27
+ | {% if row.passed -%}✅ - Pass{%- else -%}❌ - Fail{%- endif %} | {{ row.description }} |
28
+ {%- endfor %}
29
+
30
+ {%- if tips and tips.length %}
29
31
30
32
### Tips
31
33
32
- {{#tips}}
34
+ {%- for tip in tips %}
35
+
36
+ - {{ tip }}
37
+ {%- endfor %}
33
38
34
- - {{.}}
35
- {{/tips}}
36
- {{/tips.length}}
39
+ {%- endif %}
You can’t perform that action at this time.
0 commit comments