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 73d3c19 commit e0e83b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const issueNumber = github.context.payload.pull_request.issue_url.split('/').pop();
const issueNumber = context.payload.pull_request.issue_url.split('/').pop();
const issueComments = await github.issues.listComments({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
});
Expand All @@ -31,7 +31,7 @@ jobs:
});
const teamMemberLogins = teamMembers.data.map(member => member.login);
const prCreatorLogin = github.context.payload.pull_request.user.login;
const prCreatorLogin = 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 e0e83b1

Please sign in to comment.