fix whitespace breaking the table

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-12 23:23:42 +01:00
parent a1637c8617
commit 1f92b0f8f3
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 6 additions and 6 deletions

View File

@ -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 */

View File

@ -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 %}
`