Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgiakatos committed Oct 8, 2024
1 parent c8fc5a9 commit ead58b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { context } = require('@actions/github');
const issueNumber = context.payload.pull_request.issue_url.split('/').pop();
const github = require('@actions/github');
const issueNumber = github.context.payload.pull_request.issue_url.split('/').pop();
const issueComments = await github.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
owner: github.context.repo.owner,
repo: github.context.repo.repo,
issue_number: issueNumber,
});
Expand All @@ -32,7 +32,7 @@ jobs:
});
const teamMemberLogins = teamMembers.data.map(member => member.login);
const prCreatorLogin = context.payload.pull_request.user.login;
const prCreatorLogin = github.context.payload.pull_request.user.login;
// Check if the PR creator is a member of the specified team
if (teamMemberLogins.includes(prCreatorLogin)) {
Expand Down

0 comments on commit ead58b9

Please sign in to comment.