Restore comment re-use code

This commit is contained in:
Vitaliy Vlasov 2018-05-30 15:21:05 +03:00
parent 2868b234d3
commit 38dc33b359
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
1 changed files with 1 additions and 1 deletions

View File

@ -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))