upsertComment = async (
  octokit,
  issueNumber,
  repo,
  owner,
  commentId,
  body,
) => {
  let resp;
  if (commentId === undefined) {
    resp = await octokit.rest.issues.createComment({
      owner,
      repo,
      issue_number: issueNumber,
      body,
    });
  } else {
    resp = await octokit.rest.issues.updateComment({
      owner,
      repo,
      comment_id: commentId,
      body,
    });
  }
  return resp.data.html_url;
}
Create or update the preview comment.

@param {Object} octokit Octokit instance.
@param {number} issueNumber Issue number.
@param {Object} repo Repository name.
@param {Object} owner Owner of the repository.
@param {number} commentId Comment ID.
@param {string} body Comment body.
@returns {string} The comment URL.