From 05d33dc0f84389b665f8cdac8163125222b5e6d0 Mon Sep 17 00:00:00 2001 From: Nik Ho Date: Fri, 7 Jun 2024 14:14:23 +1200 Subject: [PATCH] test: get additional team data --- .github/scripts/check_team_membership.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/scripts/check_team_membership.sh b/.github/scripts/check_team_membership.sh index e69083b8..821a4701 100755 --- a/.github/scripts/check_team_membership.sh +++ b/.github/scripts/check_team_membership.sh @@ -5,6 +5,18 @@ set -x USER=$1 TOKEN=$2 +echo "$(curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/orgs/immutable/teams)" + +echo "$(curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/orgs/immutable/teams/sdk/members)" + response=$(curl -L -H "Authorization: Bearer $TOKEN" -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/immutable/teams/sdk/memberships/codeschwert") echo "$response"