From db68ac0c20494c270978a3cc0227c9a966d76550 Mon Sep 17 00:00:00 2001 From: SafetyQuincyF Date: Thu, 19 Dec 2024 17:10:59 -0800 Subject: [PATCH] fix --- .github/workflows/contributor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/contributor.yml b/.github/workflows/contributor.yml index 55082d5f..ec19c8ab 100644 --- a/.github/workflows/contributor.yml +++ b/.github/workflows/contributor.yml @@ -15,7 +15,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ORG: "pyupio" - TEAM: "Developers" + TEAM: "developers" PR_AUTHOR: ${{ github.event.pull_request.user.login }} ACTOR: ${{ github.actor }} run: | @@ -24,7 +24,7 @@ jobs: # Fetch membership details from GitHub API RESPONSE=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \ - "https://api.github.com/orgs/$ORG/teams/$TEAM/memberships/$user") + "https://api.github.com/orgs/$ORG/teams/$TEAM/members" | jq '.[] | .login') # Validate API response and check membership status if [ -z "$RESPONSE" ]; then @@ -37,7 +37,7 @@ jobs: echo "proceed=true" >> $GITHUB_ENV return 0 elif echo "$RESPONSE" | jq -e '.message == "Not Found"' > /dev/null 2>&1; then - echo "Error: Team or organization not found. Please verify ORG and TEAM names." >&2 + echo "API Response: $RESPONSE" >&2 return 2 else echo "$user is NOT a member of the $TEAM team."