From 2ff0e2a7b9e04fbe53399f28e9052d8c5778df62 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 8 Jul 2019 16:30:24 -0400 Subject: [PATCH] submit-builds: add note with list of packages --- submit-builds | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/submit-builds b/submit-builds index ff502fb..f37f732 100755 --- a/submit-builds +++ b/submit-builds @@ -24,18 +24,25 @@ done shift $((OPTIND-1)) builds="" +note="" for target in $* do if [ "$builds" = "" ] then builds="'${target#sr.ht/}'" + note="${target#sr.ht/}" else builds="$builds, '${target#sr.ht/}'" + if [ "${#note}" -lt 128 ] + then + note="$note, ${target#sr.ht/}" + fi fi done sed "s/packages: \\[\\]/packages: [$builds]/g" < build.yml | jq -sR '{ "manifest": ., "tags": ["sr.ht-apkbuilds"], + "note": "'"$note"'" }' | curl \ -H Authorization:"token $oauth_token" \ -H Content-Type:application/json \ -- 2.45.2