Skip to content

Commit 96cdfa2

Browse files
committed
leaderboard: add badge
1 parent baac028 commit 96cdfa2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

leaderboard-fetch.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ curl \
1616
'.members
1717
| values[]
1818
| select(.name==$ENV.aoc_username)
19-
| "user **"
19+
| "!["
20+
+ (.stars | tostring)
21+
+ " stars]("
22+
+ "https://img.shields.io/badge/"+
23+
+ (.stars | tostring)
24+
+ "-%E2%AD%90_stars-gold) "
25+
+ user **"
2026
+ .name
2127
+ "** ("
22-
+ (.stars | tostring)
23-
+ " stars, last one at "
28+
+ "last one at "
2429
+ (.last_star_ts | todateiso8601)
2530
+ ")"'
2631

0 commit comments

Comments
 (0)