Skip to content

Commit

Permalink
log the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Sep 4, 2024
1 parent 547d7ae commit 658470d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/wrike_ist/azure.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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 %))))))))

0 comments on commit 658470d

Please sign in to comment.