Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SafetyQuincyF committed Dec 20, 2024
1 parent 572381f commit db68ac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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."
Expand Down

0 comments on commit db68ac0

Please sign in to comment.