From 805cd837dd4d6085a37824a09e3b4a443e06803b Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 12 Sep 2018 06:28:13 +0200
Subject: [PATCH] refactor: GITHUB_COM_TOKEN after GITHUB_TOKEN

---
 lib/config/env.js | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/lib/config/env.js b/lib/config/env.js
index fed3afce8c..be3f281fed 100644
--- a/lib/config/env.js
+++ b/lib/config/env.js
@@ -39,13 +39,6 @@ function getConfig(env) {
     }
   });
 
-  if (env.GITHUB_COM_TOKEN) {
-    config.endpoints.push({
-      endpoint: 'https://api.github.com/',
-      platform: 'github',
-      token: env.GITHUB_COM_TOKEN,
-    });
-  }
   if (env.GITHUB_TOKEN) {
     config.endpoints.push({
       platform: 'github',
@@ -55,6 +48,14 @@ function getConfig(env) {
     });
   }
 
+  if (env.GITHUB_COM_TOKEN) {
+    config.endpoints.push({
+      endpoint: 'https://api.github.com/',
+      platform: 'github',
+      token: env.GITHUB_COM_TOKEN,
+    });
+  }
+
   if (env.GITLAB_TOKEN) {
     config.endpoints.push({
       platform: 'gitlab',
-- 
GitLab