Skip to content

Commit 6d96f25

Browse files
authored
Update extensions.yml
1 parent f51a169 commit 6d96f25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/extensions.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ jobs:
2323
uses: actions/github-script@v6
2424
with:
2525
script: |
26+
const { Octokit } = require("@octokit/core");
27+
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
28+
2629
try {
2730
const username = context.payload.issue.user.login;
2831
console.log(`Checking membership for user: ${username}`);
2932
3033
// List all members of the team and check if the user is one of them
31-
const { data: members } = await github.teams.listMembers({
34+
const { data: members } = await octokit.request('GET /orgs/{org}/teams/{team_slug}/members', {
3235
org: 'patternfly',
3336
team_slug: 'frequent-flyers',
3437
});

0 commit comments

Comments
 (0)