more fixes for whitespace issues
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
1aa0ae46d5
commit
f2218da7ab
|
@ -37,7 +37,7 @@ const App = (ghc) => {
|
||||||
router.get('/builds/:pr', async (ctx) => {
|
router.get('/builds/:pr', async (ctx) => {
|
||||||
/* TODO add validation of id parameter */
|
/* TODO add validation of id parameter */
|
||||||
const builds = await ghc.db.getBuilds(ctx.params.pr)
|
const builds = await ghc.db.getBuilds(ctx.params.pr)
|
||||||
ctx.body = {status:'ok', builds}
|
ctx.body = {count: builds.length, builds}
|
||||||
})
|
})
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
|
@ -3,10 +3,10 @@ module.exports = `
|
||||||
| :grey_question: | Commit | When | Platform | Build | Duration | Result |
|
| :grey_question: | Commit | When | Platform | Build | Duration | Result |
|
||||||
|-|-|-|-|-|-|-|
|
|-|-|-|-|-|-|-|
|
||||||
{% for b in builds -%}
|
{% for b in builds -%}
|
||||||
{% if b.success -%}
|
{%- 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 }}) |
|
| :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 -%}
|
{% 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) |
|
| :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 %}
|
{% endif -%}
|
||||||
{%- endfor %}
|
{%- endfor -%}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue