more fixes for whitespace issues

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

View File

@ -37,7 +37,7 @@ const App = (ghc) => {
router.get('/builds/:pr', async (ctx) => {
/* TODO add validation of id parameter */
const builds = await ghc.db.getBuilds(ctx.params.pr)
ctx.body = {status:'ok', builds}
ctx.body = {count: builds.length, builds}
})
return app

View File

@ -3,10 +3,10 @@ module.exports = `
| :grey_question: | Commit | When | Platform | Build | Duration | Result |
|-|-|-|-|-|-|-|
{% for b in builds -%}
{% if b.success -%}
| :heavy_check_mark: | {{ b.commit }} | {{ b.when }} | \`{{ b.platform }}\` | [{{ b.pr }}#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:package: {{ b.platform }}]({{ b.pkg_url }}) |
{%- if b.success -%}
| :heavy_check_mark: | {{ b.commit }} | {{ b.meta.created }} | \`{{ b.platform }}\` | [{{ b.pr }}#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:package: {{ b.platform }}]({{ b.pkg_url }}) |
{% else -%}
| :x: | {{ b.commit }} | {{ b.when }} | \`{{ b.platform }}\` | [{{ b.pr }}#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:page_facing_up: build log]({{ b.pkg_url }}consoleText) |
{%- endif %}
{%- endfor %}
| :x: | {{ b.commit }} | {{ b.meta.created }} | \`{{ b.platform }}\` | [{{ b.pr }}#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:page_facing_up: build log]({{ b.pkg_url }}consoleText) |
{% endif -%}
{%- endfor -%}
`