Add diagnostic and CI;
This commit is contained in:
parent
683b32a715
commit
9d31b30444
4
.gitlab-ci.yml
Normal file
4
.gitlab-ci.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
image: ubuntu:latest
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- echo "Hello world!"
|
2
index.js
2
index.js
@ -94,6 +94,8 @@ app.post('/', function(req, res) {
|
|||||||
var msgs = null;
|
var msgs = null;
|
||||||
if (body.object_kind && handlers[body.object_kind])
|
if (body.object_kind && handlers[body.object_kind])
|
||||||
msgs = handlers[body.object_kind](body);
|
msgs = handlers[body.object_kind](body);
|
||||||
|
else
|
||||||
|
console.log("Unexpected object_kind:", body.object_kind);
|
||||||
|
|
||||||
if (msgs) {
|
if (msgs) {
|
||||||
if (msgs instanceof Array) {
|
if (msgs instanceof Array) {
|
||||||
|
Loading…
Reference in New Issue
Block a user