From 1ac01f1d13e289c0b8da4f1a7a9cbcc996b23da2 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 4 Feb 2019 12:42:38 +0100 Subject: [PATCH] refactor(bitbucket): no token initRepo --- lib/platform/bitbucket/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/platform/bitbucket/index.js b/lib/platform/bitbucket/index.js index 55932383eb..f9b5ff7eea 100644 --- a/lib/platform/bitbucket/index.js +++ b/lib/platform/bitbucket/index.js @@ -76,9 +76,9 @@ async function getRepos(token, endpoint) { } // Initialize bitbucket by getting base branch and SHA -async function initRepo({ repository, token, endpoint }) { +async function initRepo({ repository, endpoint }) { logger.debug(`initRepo("${repository}")`); - const opts = hostRules.find({ platform: 'bitbucket' }, { token, endpoint }); + const opts = hostRules.find({ platform: 'bitbucket' }, { endpoint }); // istanbul ignore next if (!opts.token) { throw new Error(`No token found for Bitbucket repository ${repository}`); -- GitLab