fix optional user name on github hook

This commit is contained in:
Enrico Fasoli 2015-04-26 20:34:44 +02:00
parent 16d437f0ab
commit cfade838af

View File

@ -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'