Skip to content

Commit 4332109

Browse files
committed
update docs
1 parent 6aea553 commit 4332109

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Glip Webhook Proxy
22
==================
33

4+
[![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
5+
46
Proxy service to map different requests to Glip's inbound webhook service. This is useful because various chat services have similar, but slightly different inbound webhook services. This proxy service does the conversion so you don't have to. Applications already integrated with Slack's inbound webhooks can create messages on Glip simply by using the proxy URL.
57

68
Conversion of the following webhook message formats to Glip inbound webhooks include:
@@ -66,3 +68,6 @@ Once you get the URL, the proxy URL is created by appending the GUID (e.g. `1112
6668
Glip Webhook Proxy is built using:
6769

6870
* [express](https://github.com/expressjs/express)
71+
72+
[scrutinizer-status-svg]: https://scrutinizer-ci.com/g/grokify/glip-webhook-proxy/badges/quality-score.png?b=master
73+
[scrutinizer-status-link]: https://scrutinizer-ci.com/g/grokify/glip-webhook-proxy/?branch=master

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var request = require('request');
77
var bodyParser = require('body-parser')
88
app.use(bodyParser.json())
99
app.use(bodyParser.urlencoded({ extended: false }))
10-
//var urlencodedParser = bodyParser.urlencoded({ extended: false })
1110

1211
var useTls = process.env.MY_APP_TLS_ENABLED > 0 ? true : false;
1312
var server = null;
@@ -53,7 +52,7 @@ var tc = require('./normalizer_travisci.js');
5352

5453
app.post('/webhook/travisci/out/glip/:glipguid/?', function(req, res) {
5554
var payload = JSON.parse(req.body.payload);
56-
var options = { glipguid: req.params.glipguid, payload: payload};
55+
var options = { glipguid: req.params.glipguid, payload: payload };
5756
var travisci = new tc.Travisci_Normalizer();
5857
travisci.normalize(options, callback);
5958
var note = 'Finished Travis CI Webhook Request';

0 commit comments

Comments
 (0)