fix whitespace breaking the table
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a1637c8617
commit
1f92b0f8f3
|
@ -9,7 +9,7 @@ class Comments {
|
|||
constructor(client, owner, repo, builds) {
|
||||
this.gh = client
|
||||
this.db = builds
|
||||
this.nj = nunjucks.configure({autoescape: false})
|
||||
this.nj = nunjucks.configure()
|
||||
this.template = template
|
||||
this.repo = repo /* name of repo to query */
|
||||
this.owner = owner /* name of user who makes the comments */
|
||||
|
|
|
@ -2,11 +2,11 @@ module.exports = `
|
|||
### Jenkins Builds
|
||||
| Status | Commit | Platform | Build | Duration | Result |
|
||||
|-|-|-|-|-|-|
|
||||
{% for b in builds %}
|
||||
{% if b.success %}
|
||||
{% for b in builds -%}
|
||||
{% if b.success -%}
|
||||
| :heavy_check_mark: | {{ b.commit }} | \`{{ b.platform }}\` | [{{ b.pr }}#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:package: {{ b.platform }} package]({{ b.url }}) |
|
||||
{% else %}
|
||||
{% else -%}
|
||||
| :x: | {{ b.commit }} | \`{{ b.platform }}\` | [{{ b.pr }}#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:page_facing_up: build log]({{ b.url }}consoleText) |
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue