async isProtected({ branch }) {
    const octo = octokit(this.token, this.repo);
    const { owner, repo } = this.ownerRepo();
    try {
      await octo.repos.getBranchProtection({
        branch,
        owner,
        repo
      });
      return true;
    } catch (error) {
      const errors = [
        'Branch not protected',
        'Upgrade to GitHub Pro or make this repository public to enable this feature.'
      ];
      if (errors.includes(error.message)) {
        return false;
      }
      throw error;
    }
  }
@param {{ branch: string }} opts
@returns {Promise<boolean>}