From bf0cbd38cb6932bfd6e17400d6061c7923446bac Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Thu, 16 Nov 2017 14:12:40 +0100
Subject: [PATCH] refactor: reset platform config to {} during initRepo

---
 lib/platform/github/index.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js
index c98dac8936..2c76964f6d 100644
--- a/lib/platform/github/index.js
+++ b/lib/platform/github/index.js
@@ -1,6 +1,6 @@
 const get = require('./gh-got-wrapper');
 
-const config = {};
+let config = {};
 
 module.exports = {
   // Initialization
@@ -72,10 +72,8 @@ async function initRepo(repoName, token, endpoint) {
   if (endpoint) {
     process.env.GITHUB_ENDPOINT = endpoint;
   }
+  config = {};
   config.repoName = repoName;
-  delete config.baseCommitSHA;
-  config.fileList = null;
-  config.prList = null;
   config.prs = {};
   const platformConfig = {};
   let res;
-- 
GitLab