[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:
committed by
github-actions[bot]
parent
7371608d39
commit
21628611a9
@@ -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']
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user