if ((newBuffer(req.headers['x-hub-signature'])).equals(newBuffer(`sha1=${crypto.createHmac('sha1',config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')}`))){
if ((newBuffer(req.headers['x-hub-signature']as string)).equals(newBuffer(`sha1=${crypto.createHmac('sha1',config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')}`))){