An express module to hangle Gitlab CI hooks events
npm install gitlab-ci-webhook
var express = require('express');
var bodyParser = require('body-parser');
var webhook = require('gitlab-webhook');
var app = express();app.use(bodyParser.json());
app.use(webhook({
"url" : "/test",
"script" : "./test.sh",
"branches" : "master"
}));
[...]
``This module will automatically call the specified script or command whenever the app reveives a build event.