From cfade838af07f7d56ab00259a29ede5df30c9898 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Sun, 26 Apr 2015 20:34:44 +0200 Subject: [PATCH] fix optional user name on github hook --- scripts/github.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/github.coffee b/scripts/github.coffee index e859024..7ba030b 100644 --- a/scripts/github.coffee +++ b/scripts/github.coffee @@ -14,7 +14,7 @@ GitHubAPI = require 'github' github = new GitHubAPI version: '3.0.0' module.exports = (robot) -> - robot.router.post '/hubot/githubhook/:room/:name', (req, res) -> + robot.router.post '/hubot/githubhook/:room/:name?', (req, res) -> res.send 200 dest = name: req.params.name, room: req.params.room.replace(':','#') s = 'Branch '+req.body.ref+' aggiornato!\n'