work damnit

This commit is contained in:
Jon 2022-03-31 19:55:09 +01:00
parent a06355d913
commit b0e36c1a8e

View File

@ -4,9 +4,11 @@ reactions="$(yq . /dev/stdin < reactions.yaml)"
jq -n --argjson reactions "$reactions" \ jq -n --argjson reactions "$reactions" \
'[ '[
$reactions[] | { $reactions[] | {
annotation: .emoji,
label: .emoji, label: .emoji,
emoticon: .emoji, emoticon: .emoji,
hexcode: "2721", hexcode: "2721",
unicode: .emoji,
shortcodes: [ .emoji ], shortcodes: [ .emoji ],
tags: (.tags? + [ .emoji ]), tags: (.tags? + [ .emoji ]),
emoji: .emoji, emoji: .emoji,