code: async function getRepos(token, endpoint) {
    logger.debug('getRepos(token, endpoint)');
    const opts = hostRules.find({ platform: 'bitbucket' }, { token, endpoint });
    // istanbul ignore next
    if (!opts.token) {
      throw new Error('No token found for getRepos');
    }
    hostRules.update({ ...opts, platform: 'bitbucket', default: true });
    try {
      const repos = await utils.accumulateValues(
        `/2.0/repositories/?role=contributor`
      );
      return repos.map(repo => repo.full_name);
    } catch (err) /* istanbul ignore next */ {
      logger.error({ err }, `bitbucket getRepos error`);
      throw err;
    }
  }
docs: Get all repositories that the user has access to