diff --git a/scripts/github.coffee b/scripts/github.coffee index 9a5493c..0e1207f 100644 --- a/scripts/github.coffee +++ b/scripts/github.coffee @@ -26,9 +26,10 @@ module.exports = (robot) -> cm = req.body.commits.map (c) -> [c.committer.username,c.message].join ' -> ' robot.send dest, s+cm.join('\n') + unless process.env.TESTING_ASJON # Disabilito http route durante i test - robot.router.post '/hubot/githubhook/:room/:name?', + robot.router.post '/hubot/githubhook/:room/:name?', githubhook robot.respond /(?:(?:mostra(?:mi)?|fammi vedere) )?(?:le )?issue(?:s)?/i, (res) -> msg = state: 'open', user: 'fazo96', repo: 'asjon', sort: 'updated'