From 6f9d0e209a7cfcaa8212491f33452a39537572c7 Mon Sep 17 00:00:00 2001 From: Julien Masson Date: Wed, 18 Mar 2020 10:48:37 +0100 Subject: [PATCH] github: handle diff post when deleting post Signed-off-by: Julien Masson --- lisp/forge-github.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))