Skip to content

Commit

Permalink
add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
idr0id committed Apr 2, 2019
1 parent ab72f48 commit 76ddac9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 76ddac9

Please sign in to comment.