Skip to content

Commit

Permalink
Well that's embarassing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Mar 23, 2024
1 parent 63b802e commit f0f9c9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/new_member.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Check if commenter is in the admins team
id: check_membership
run: |
ROLE=$(gh api -X GET /orgs/{org}/teams/{team_slug}/memberships/${{ github.event.comment.user.login }} --jq '.role')
ROLE=$(gh api -X GET /orgs/django-community/teams/admins/memberships/${{ github.event.comment.user.login }} --jq '.role')
if [[ "$ROLE" == "maintainer" ]]; then
echo "is_team_member=true" >> $GITHUB_OUTPUT
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Invite User to Organization
uses: octokit/[email protected]
with:
route: PUT /orgs/{org}/memberships/{username}
route: PUT /orgs/django-community/memberships/${{ github.event.issue.author.login }}
org: 'django-community'
username: ${{ github.event.issue.author.login }}
role: member
Expand Down

0 comments on commit f0f9c9a

Please sign in to comment.