Hi,

I'm using the following script to fetch the group ID of a salsa team:

#!/bin/sh

SALSA_URL="https://salsa.debian.org/api/v4";
SALSA_TOKEN="MYSECRETTOKEN"

SALSA_GROUP="med-team"
#SALSA_GROUP="science-team"
#SALSA_GROUP="r-pkg-team"

SALSA_GROUP_ID=$(curl --silent -f -XGET --header "PRIVATE-TOKEN: $SALSA_TOKEN" 
"$SALSA_URL/groups?all_available=false" | jq ".[] | select(.path == 
\"$SALSA_GROUP\") | .id")

echo "ID=$SALSA_GROUP_ID"



For SALSA_GROUP="med-team" this returns

  ID=2799

If I try science-team or r-pkg-team it returns nothing.  Any idea
what might be wrong here?

Kind regards

        Andreas.

-- 
http://fam-tille.de

Reply via email to