From e2f51b51ced9a52244db8d4b3bd41c17fc12049a Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Tue, 28 Aug 2018 17:07:00 +0200
Subject: [PATCH] refactor: RENOVATE_USER_AGENT

---
 lib/platform/github/gh-got-wrapper.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js
index 5b798e0ba9..8f5fdd1420 100644
--- a/lib/platform/github/gh-got-wrapper.js
+++ b/lib/platform/github/gh-got-wrapper.js
@@ -26,7 +26,9 @@ async function get(path, options, retries = 5) {
         {},
         {
           accept: appAccept,
-          'user-agent': 'https://github.com/renovatebot/renovate',
+          'user-agent':
+            process.env.RENOVATE_USER_AGENT ||
+            'https://github.com/renovatebot/renovate',
         },
         opts.headers
       );
-- 
GitLab