From 2780c87aaaa9260969c81dea7bd01f6cf33d6b74 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 19 Apr 2018 17:10:40 +0200 Subject: [PATCH] Last GitHub fix --- integrations/github.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integrations/github.js b/integrations/github.js index 3ec47d4..61f274b 100644 --- a/integrations/github.js +++ b/integrations/github.js @@ -3,6 +3,10 @@ const fetch = require('node-fetch'); module.exports = async function(robot, kredits) { + function messageRoom(message) { + robot.messageRoom(process.env.KREDITS_ROOM, message); + } + robot.logger.debug('[hubot-kredits] Loading GitHub integration...'); let repoBlackList = []; @@ -42,8 +46,8 @@ module.exports = async function(robot, kredits) { }; return Operator.addProposal(contributionAttr).catch(error => { - robot.logger.info(`[hubot-kredits] Error:`, error); - messageRoom(`I wanted to propose giving kredits to ${githubUser} for ${url}, but I cannot find their contact data. Please add them as a contributor: https://kredits.kosmos.org`); + robot.logger.error(`[hubot-kredits] Error:`, error); + messageRoom(`I wanted to propose giving kredits to GitHub user ${githubUser} for ${url}, but I cannot find their info. Please add them as a contributor: https://kredits.kosmos.org`); }); }); }