code: async function validateBaseBranches(config) {
    if (!is.nonEmptyArray(config.baseBranches)) {
      return [];
    }
    const missingBranches = [];
    for (const baseBranch of config.baseBranches) {
      if (!(await platform.branchExists(baseBranch))) {
        missingBranches.push(baseBranch);
      }
    }
    if (missingBranches.length) {
      return [
        {
          depName: 'Missing baseBranches',
          message:
            'One or more configured baseBranches are missing from this repo: ' +
            missingBranches.join(', '),
        },
      ];
    }
    return [];
  }
docs: istanbul ignore next