add issue-url fn to bounty model helpers

This commit is contained in:
Martin Klepsch 2018-04-06 14:16:18 +02:00 committed by Tetiana Churikova
parent e7c8a986d7
commit 77eec6fe3f

View File

@ -23,6 +23,11 @@
(defn confirming? [bounty]
(:confirming? bounty))
(defn issue-url
[bounty]
{:pre [(:repo-owner bounty) (:repo-name bounty) (:issue-number bounty)]}
(str "https://github.com/" (:repo-owner bounty) "/" (:repo-name bounty) "/issues/" (:issue-number bounty)))
(defn crypto-balances [bounty]
;; TODO add some assertions
(cond-> (:tokens bounty)