in pkg/review/header.go [197:211]
func doReview(result *header2.Result, comments []*github.DraftReviewComment) error {
logger.Log.Debugln("Comments:", comments)
c := Markdown(result)
e := "COMMENT"
if _, _, err := gh.PullRequests.CreateReview(ctx, owner, repo, pr, &github.PullRequestReviewRequest{
CommitID: &sha,
Body: &c,
Event: &e,
Comments: comments,
}); err != nil {
return err
}
return nil
}