From 9d31b30444e76fc1278dabd9fa12c2479eb51851 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 23 Jun 2016 22:14:37 +0200 Subject: [PATCH] Add diagnostic and CI; --- .gitlab-ci.yml | 4 ++++ index.js | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..283d918 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,4 @@ +image: ubuntu:latest + +before_script: + - echo "Hello world!" diff --git a/index.js b/index.js index b1e546d..8694cbe 100644 --- a/index.js +++ b/index.js @@ -94,6 +94,8 @@ app.post('/', function(req, res) { var msgs = null; if (body.object_kind && handlers[body.object_kind]) msgs = handlers[body.object_kind](body); + else + console.log("Unexpected object_kind:", body.object_kind); if (msgs) { if (msgs instanceof Array) {