fix optional user name on github hook
This commit is contained in:
parent
16d437f0ab
commit
cfade838af
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user