Skip to content

Commit

Permalink
github: handle diff post when deleting post
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Masson <[email protected]>
  • Loading branch information
JulienMasson committed Feb 5, 2021
1 parent 4179bcb commit 6f9d0e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisp/forge-github.el
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,10 @@

(cl-defmethod forge--delete-post
((_repo forge-github-repository) post)
(forge--ghub-delete post "/repos/:owner/:repo/issues/comments/:number")
(forge--ghub-delete post
(if (and (forge-pullreq-post-p post) (oref post diff-p))
"/repos/:owner/:repo/pulls/comments/:number"
"/repos/:owner/:repo/issues/comments/:number"))
(closql-delete post)
(magit-refresh))

Expand Down

0 comments on commit 6f9d0e2

Please sign in to comment.