From 38dc33b359c766404b1b8869cd525c6dbd332cc4 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Wed, 30 May 2018 15:21:05 +0300 Subject: [PATCH] Restore comment re-use code --- src/clj/commiteth/github/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/commiteth/github/core.clj b/src/clj/commiteth/github/core.clj index 25a792d..dba4215 100644 --- a/src/clj/commiteth/github/core.clj +++ b/src/clj/commiteth/github/core.clj @@ -366,7 +366,7 @@ nil)] (log/info (str "Updating " owner "/" repo "/" issue-number " comment #" comment-id " with contents: " comment)) - (if (= state :deploying) + (if (and (= state :deploying) (nil? comment-id)) (let [resp (issues/create-comment owner repo issue-number comment (self-auth-params)) comment-id (:id resp)] (db-issues/update-comment-id issue-id comment-id))