From 76ddac959a444a90e3010898648bab313dd266e9 Mon Sep 17 00:00:00 2001 From: Vladimir Komissarov Date: Tue, 2 Apr 2019 15:12:53 +0700 Subject: [PATCH] add metadata --- assets/out | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/out b/assets/out index 2fe1104..3fd7367 100755 --- a/assets/out +++ b/assets/out @@ -73,13 +73,19 @@ change_build_status() { -XPOST "${url}" \ -d "${change_build_status_payload}" - jq -n --argjson pr "${pr}" '{ + jq -n --argjson pr "${pr}" --argjson payload "${change_build_status_payload}" '{ version: { id: $pr.id|tostring, title: $pr.title, branch: $pr.feature_branch, commit: $pr.commit - } + }, + metadata: [ + {name: "state", value: $payload.state}, + {name: "key", value: $payload.key}, + {name: "name", value: $payload.name}, + {name: "description", value: $payload.description} + ] }' >&3 }