[Bug] Community label: use getMembershipForUser (#1469)

Use getMembershipForUser to determine the proper org membership status

(cherry picked from commit 2a7d036443)
This commit is contained in:
Justin Ibarra
2021-08-31 21:32:30 -08:00
committed by github-actions[bot]
parent 7371608d39
commit 21628611a9
+2 -2
View File
@@ -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']
})
})