Skip to content
Snippets Groups Projects
Commit 1ac01f1d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor(bitbucket): no token initRepo

parent 2db6f164
Branches
No related tags found
No related merge requests found
......@@ -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}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment