Skip to content

Commit

Permalink
fix #31
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersoncferreira committed Oct 10, 2021
1 parent 4d91dd6 commit 1b41ff6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions github-review.el
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,13 @@ Github API provides only the originalPosition in the query.")
(interactive)
(let* ((pullreq (or (forge-pullreq-at-point) (forge-current-topic)))
(repo (forge-get-repository pullreq)))
(github-review-start-internal (a-alist 'owner (oref repo owner)
'repo (oref repo name)
'apihost (oref repo apihost)
'num (oref pullreq number)))))

(if (not (forge-pullreq-p pullreq))
(message "We can only review PRs at the moment. You tried on something else.")
(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 1b41ff6

Please sign in to comment.