code: async function getPr(prNo) {
    const pr = (await api.get(
      `/2.0/repositories/${config.repository}/pullrequests/${prNo}`
    )).body;
  
    // istanbul ignore if
    if (!pr) {
      return null;
    }
  
    const res = {
      displayNumber: `Pull Request #${pr.id}`,
      ...utils.prInfo(pr),
    };
  
    if (utils.prStates.open.includes(pr.state)) {
      res.isConflicted = await isPrConflicted(prNo);
      const commits = await utils.accumulateValues(pr.links.commits.href);
      if (commits.length === 1) {
        res.canRebase = true;
      }
    }
    if (await branchExists(pr.source.branch.name)) {
      res.isStale = await isBranchStale(pr.source.branch.name);
    }
  
    return res;
  }
docs: Gets details for a PR