diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index c98dac89365ff1cbfbae1c4d0e75c90b975a64f7..2c76964f6d1e969c339d858a59748d1b4edacf1a 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;