Skip to content

Commit

Permalink
sometimes we dont have top level comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersoncferreira committed Oct 10, 2021
1 parent a0157b8 commit 9d17613
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions github-review.el
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,13 @@ This function infers the PR name based on the current filename"
(lambda (&rest _)
(message "Done submitting review replies"))))

(github-review-post-review
pr-alist
review
(lambda (&rest _)
(message "Done submitting review")))))
(when (or regular-comments
(not (string-empty-p (a-get review 'body))))
(github-review-post-review
pr-alist
review
(lambda (&rest _)
(message "Done submitting review"))))))

(defun github-review-to-comments (text)
"Convert TEXT, a string to a string where each line is prefixed by ~."
Expand Down

0 comments on commit 9d17613

Please sign in to comment.