We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f51a169 commit 6d96f25Copy full SHA for 6d96f25
.github/workflows/extensions.yml
@@ -23,12 +23,15 @@ jobs:
23
uses: actions/github-script@v6
24
with:
25
script: |
26
+ const { Octokit } = require("@octokit/core");
27
+ const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
28
+
29
try {
30
const username = context.payload.issue.user.login;
31
console.log(`Checking membership for user: ${username}`);
32
33
// List all members of the team and check if the user is one of them
- const { data: members } = await github.teams.listMembers({
34
+ const { data: members } = await octokit.request('GET /orgs/{org}/teams/{team_slug}/members', {
35
org: 'patternfly',
36
team_slug: 'frequent-flyers',
37
});
0 commit comments