Merge pull request #462 from status-im/develop

Restore comment re-use code
This commit is contained in:
Vitaliy Vlasov 2018-05-30 15:48:31 +03:00 committed by GitHub
commit c5f9120688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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