code: async function createPr(
    branchName,
    title,
    description,
    labels,
    useDefaultBranch
  ) {
    const targetBranch = useDefaultBranch
      ? config.defaultBranch
      : config.baseBranch;
    logger.debug(`Creating Merge Request: ${title}`);
    const res = await get.post(`projects/${config.repository}/merge_requests`, {
      body: {
        source_branch: branchName,
        target_branch: targetBranch,
        remove_source_branch: true,
        title,
        description,
        labels: is.array(labels) ? labels.join(',') : null,
      },
    });
    const pr = res.body;
    pr.number = pr.iid;
    pr.branchName = branchName;
    pr.displayNumber = `Merge Request #${pr.iid}`;
    // istanbul ignore if
    if (config.prList) {
      config.prList.push(pr);
    }
    return pr;
  }
docs: Pull Request