diff --git a/lisp/forge-github.el b/lisp/forge-github.el index 8ff9936b..0330e0e3 100644 --- a/lisp/forge-github.el +++ b/lisp/forge-github.el @@ -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))