Skip to content

Commit

Permalink
Update extensions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen authored Sep 18, 2024
1 parent f51a169 commit 6d96f25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { Octokit } = require("@octokit/core");
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
try {
const username = context.payload.issue.user.login;
console.log(`Checking membership for user: ${username}`);
// List all members of the team and check if the user is one of them
const { data: members } = await github.teams.listMembers({
const { data: members } = await octokit.request('GET /orgs/{org}/teams/{team_slug}/members', {
org: 'patternfly',
team_slug: 'frequent-flyers',
});
Expand Down

0 comments on commit 6d96f25

Please sign in to comment.