Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersoncferreira committed Oct 10, 2021
1 parent 6a9e34f commit 37ad44a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions github-review.el
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@ ACC is an alist accumulating parsing state."
(parsed-comments (a-get parsed-data 'comments))
(parsed-body (s-trim-right (a-get parsed-data 'body)))
(merged-comments (when parsed-comments (github-review-merge-comments (reverse parsed-comments)))))
`((body . ,parsed-body)
(comments . ,(reverse merged-comments)))))
(if (equal nil merged-comments)
`((body . ,parsed-body))
`((body . ,parsed-body)
(comments . ,(reverse merged-comments))))))

;;;;;;;;;;;;;;;;;;;;;;;;;
;; Buffer interactions ;;
Expand Down Expand Up @@ -614,12 +616,12 @@ Github API provides only the originalPosition in the query.")

(if (not (forge-pullreq-p pullreq))
(message "We can only review PRs at the moment. You tried on something else.")
(progn
(setq forge-current-dir default-directory)
(github-review-start-internal (a-alist 'owner (oref repo owner)
'repo (oref repo name)
'apihost (oref repo apihost)
'num (oref pullreq number)))))))
(progn
(setq forge-current-dir default-directory)
(github-review-start-internal (a-alist 'owner (oref repo owner)
'repo (oref repo name)
'apihost (oref repo apihost)
'num (oref pullreq number)))))))

;;;###autoload
(defun github-review-start (url)
Expand Down

0 comments on commit 37ad44a

Please sign in to comment.