From 2f5e77fe168464e8545704fa5df4895d3b5ec6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Tue, 23 Aug 2016 14:46:20 +0200 Subject: [PATCH] Attempt to use new Travis API. --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 508c84c..bbe686d 100644 --- a/script.js +++ b/script.js @@ -205,12 +205,13 @@ function updateChart() { if (console) { - console.log(json.commits[idx].branch, build.state, build.result, build.event_type); + console.log(json.commits[idx].branch, build.finished_at, build.state, build.event_type); } if ((onlyMaster && json.commits[idx].branch !== 'master') || (build.finished_at !== null) || (!includeFailed && build.state !== 'passed') || (build.event_type != "push" && build.event_type != "cron")) { + if (console) console.log("return"); return; }