From 21628611a99b24abc00934de6a7e083b85b4e463 Mon Sep 17 00:00:00 2001 From: Justin Ibarra Date: Tue, 31 Aug 2021 21:32:30 -0800 Subject: [PATCH] [Bug] Community label: use getMembershipForUser (#1469) Use getMembershipForUser to determine the proper org membership status (cherry picked from commit 2a7d0364435da1d9f6374f2ca56775d1732b3174) --- .github/workflows/community.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/community.yml b/.github/workflows/community.yml index 7ce4603c2..f6beebde4 100644 --- a/.github/workflows/community.yml +++ b/.github/workflows/community.yml @@ -18,7 +18,7 @@ jobs: github-token: ${{ secrets.READ_ORG_TOKEN }} result-encoding: string script: | - const result = await github.orgs.getMembershipForAuthenticatedUser({ + const result = await github.orgs.getMembershipForUser({ org: "elastic", username: context.payload.sender.login }) @@ -40,4 +40,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, labels: ['community'] - }) \ No newline at end of file + })