From 6306500fa6263db0d6d11c20a00c210bded65542 Mon Sep 17 00:00:00 2001 From: "Pol.Alvarez@BSC" Date: Thu, 1 Mar 2018 12:14:03 +0100 Subject: [PATCH] config.githubUsername was hardcoded --- bot/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/github.js b/bot/github.js index c79d09f..975c1d9 100644 --- a/bot/github.js +++ b/bot/github.js @@ -25,7 +25,7 @@ const getLabels = function (req) { const options = { hostname: 'api.github.com', path: path, - headers: { 'User-Agent': 'kafkasl' } + headers: { 'User-Agent': config.githubUsername } }; return new Promise((resolve, reject) => { const request = https.get(options, (response) => {