From 16eddee67cc88a839336e3f71dbc0656d82c9bc0 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 31 Mar 2022 17:40:42 +0100 Subject: [PATCH] add tags optional --- reactions/generate.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactions/generate.sh b/reactions/generate.sh index ecc7b32..65ea26f 100755 --- a/reactions/generate.sh +++ b/reactions/generate.sh @@ -4,12 +4,12 @@ reactions="$(yq . /dev/stdin < reactions.yaml)" jq -n --argjson reactions "$reactions" \ '[ $reactions[] | { - label: ., + label: .emoji, hexcode: "2721", - shortcodes: [ . ], - tags: [ . ], - emoji: ., - text: ., + shortcodes: [ .emoji ], + tags: (.tags? + [ .emoji ]), + emoji: .emoji, + text: .emoji, type: 0, order: 0, group: 8,