Fix slack notifier message link

This commit is contained in:
Teemu Patja 2017-03-23 18:45:38 +02:00
parent 9f19f4ac96
commit 94eee54996
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,8 @@
"sudo service commiteth stop && cp target/uberjar/commiteth.jar /opt/commiteth/commiteth.jar && sudo service commiteth start"))
(defn slack-notify [args ctx]
(let [msg (format "Deployed revision <a href=\"%s\">%s</a> to https://commiteth.com" (:revision args) (:revision args))]
(println "Sending slack notification")
(let [sha (subs (:revision args) 0 7)
msg (format "Deployed revision <%s|%s> to https://commiteth.com" sha sha)]
(println "Sending slack notification" msg)
(slack/slack-notify msg)
{:status :success}))