Fix issue URL in activity feed
This commit is contained in:
parent
07b61ee9c8
commit
f125bd6244
|
@ -9,12 +9,12 @@
|
|||
balance
|
||||
issue-title
|
||||
item-type
|
||||
repo-owner
|
||||
repo-name
|
||||
issue-number] :as item}]
|
||||
(let [issue-link [:a
|
||||
{:href (issue-url repo-name issue-number)}
|
||||
{:href (issue-url repo-owner repo-name issue-number)}
|
||||
issue-title]]
|
||||
(println item)
|
||||
(case item-type
|
||||
"new-bounty" [:p "Opened a bounty for " issue-link]
|
||||
"claim-payout" [:p "Received " [:span.balance "ETH " balance]
|
||||
|
|
|
@ -28,5 +28,5 @@
|
|||
(-> (js/moment.utc)
|
||||
(.to js-time))))
|
||||
|
||||
(defn issue-url [repo number]
|
||||
(str "https://github.com/" repo "/issues/" number))
|
||||
(defn issue-url [owner repo number]
|
||||
(str "https://github.com/" owner "/" repo "/issues/" number))
|
||||
|
|
Loading…
Reference in New Issue