use owner login as a fallback for revoke card (can be different display name than rep owner)
This commit is contained in:
parent
92a012c2ed
commit
a9282f503a
|
@ -521,6 +521,7 @@ SELECT
|
||||||
r.owner AS repo_owner,
|
r.owner AS repo_owner,
|
||||||
r.owner_avatar_url AS repo_owner_avatar_url,
|
r.owner_avatar_url AS repo_owner_avatar_url,
|
||||||
o.address AS owner_address,
|
o.address AS owner_address,
|
||||||
|
o.login AS owner_login,
|
||||||
u.address AS payout_address
|
u.address AS payout_address
|
||||||
FROM users o, repositories r, issues i LEFT OUTER JOIN users u ON u.login = i.winner_login
|
FROM users o, repositories r, issues i LEFT OUTER JOIN users u ON u.login = i.winner_login
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
:type :item-type
|
:type :item-type
|
||||||
:repo_name :repo-name
|
:repo_name :repo-name
|
||||||
:repo_owner :repo-owner
|
:repo_owner :repo-owner
|
||||||
|
:owner_login :owner-login
|
||||||
:issue_number :issue-number
|
:issue_number :issue-number
|
||||||
:issue_id :issue-id
|
:issue_id :issue-id
|
||||||
:value_usd :value-usd
|
:value_usd :value-usd
|
||||||
|
|
|
@ -328,7 +328,7 @@
|
||||||
"Paid out to " [:span.pg-med.fw5 "@" (or (:winner_login bounty)
|
"Paid out to " [:span.pg-med.fw5 "@" (or (:winner_login bounty)
|
||||||
;; use repo owner for revoked bounties
|
;; use repo owner for revoked bounties
|
||||||
;; where no winner login is set
|
;; where no winner login is set
|
||||||
(:repo-owner bounty))]]]
|
(:owner-login bounty))]]]
|
||||||
[small-card-balances bounty]]])
|
[small-card-balances bounty]]])
|
||||||
|
|
||||||
(defn expandable-bounty-list [bounty-component bounties]
|
(defn expandable-bounty-list [bounty-component bounties]
|
||||||
|
|
Loading…
Reference in New Issue