From 658470de5ceb0c5da93ec2a5f97e83fc7bf6cd41 Mon Sep 17 00:00:00 2001 From: Ayush Gaud Date: Wed, 4 Sep 2024 16:42:10 +0900 Subject: [PATCH] log the comment --- src/wrike_ist/azure.cljs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wrike_ist/azure.cljs b/src/wrike_ist/azure.cljs index 0f9b642..9aa179c 100644 --- a/src/wrike_ist/azure.cljs +++ b/src/wrike_ist/azure.cljs @@ -63,9 +63,13 @@ (let [comment-text (link-html details) params (clj->js {:text comment-text :plainText false})] - (http/post uri {:headers (headers) - :body (js/JSON.stringify params)})))) - (.then #(js/console.log "PR link sent to task" (js/JSON.stringify params))) + (js/console.log (str "add-link-comment: params:" (js/JSON.stringify params))) + (-> (http/post uri {:headers (headers) + :body (js/JSON.stringify params)}) + (.then (fn [response] + (js/console.log (str "add-link-comment: response:" response))))) + ))) + (.then #(js/console.log "PR link sent to task")) (.catch #(if (= % :present) (js/console.log "PR link already in comments") (js/Promise.reject %))))))))