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'